File indexing completed on 2024-05-12 09:56:52
0001 /* 0002 SPDX-FileCopyrightText: 2020 Lukasz Kotula <lukasz.kotula@gmx.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SCREENTEST_H 0008 #define SCREENTEST_H 0009 0010 #include <QObject> 0011 0012 #include "../Screen.h" 0013 0014 namespace Konsole 0015 { 0016 class ScreenTest : public QObject 0017 { 0018 Q_OBJECT 0019 0020 private Q_SLOTS: 0021 void testLargeScreenCopyShortLine(); 0022 void testLargeScreenCopyEmptyLine(); 0023 void testLargeScreenCopyLongLine(); 0024 void testBlockSelection(); 0025 void testCJKBlockSelection(); 0026 void testCursorPosition(); 0027 0028 private: 0029 void doLargeScreenCopyVerification(const QString &putToScreen, const QString &expectedSelection); 0030 void doComparePosition(Screen *screen, int y, int x); 0031 0032 const int largeScreenLines = 10; 0033 const int largeScreenColumns = 1200; 0034 }; 0035 0036 } 0037 0038 #endif // SCREENTEST_H