File indexing completed on 2024-12-22 04:46:03
0001 /* 0002 SPDX-FileCopyrightText: 2021 David Faure <faure@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 #include <QStandardItemModel> 0011 0012 class TextSelectionTest : public QObject 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit TextSelectionTest(QObject *parent = nullptr); 0017 ~TextSelectionTest() override = default; 0018 0019 private Q_SLOTS: 0020 void initTestCase(); 0021 void testChangingSelection(); 0022 void testSingleLineReverseSelection(); 0023 void testSelectWordUnderCursor(); 0024 void shouldHaveDefaultValues(); 0025 void testSelectAll(); 0026 void textClear(); 0027 0028 private: 0029 QStandardItemModel model; 0030 };