File indexing completed on 2024-05-19 04:39:59
0001 /* 0002 SPDX-FileCopyrightText: 2014 Kevin Funk <kfunk@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef TESTSTRINGHANDLER_H 0008 #define TESTSTRINGHANDLER_H 0009 0010 #include <QObject> 0011 0012 class TestStringHandler : public QObject 0013 { 0014 Q_OBJECT 0015 0016 private Q_SLOTS: 0017 void initTestCase(); 0018 0019 void testHtmlToPlainText(); 0020 void testHtmlToPlainText_data(); 0021 0022 void testEscapeJavaScriptString(); 0023 void testEscapeJavaScriptString_data(); 0024 0025 void testFindAsciiIdentifierLength(); 0026 void testFindAsciiIdentifierLength_data(); 0027 void testFindAsciiIdentifierLengthNoMatch(); 0028 void testFindAsciiIdentifierLengthNoMatch_data(); 0029 0030 void testMatchUnbracedAsciiVariable(); 0031 void testMatchUnbracedAsciiVariable_data(); 0032 void testUnmatchedAsciiVariable(); 0033 void testUnmatchedAsciiVariable_data(); 0034 void testMatchBracedAsciiVariable(); 0035 void testMatchBracedAsciiVariable_data(); 0036 0037 void testStripAnsiSequences(); 0038 void testStripAnsiSequences_data(); 0039 0040 void testNormalizeLineEndings(); 0041 void testNormalizeLineEndings_data(); 0042 }; 0043 0044 #endif // TESTSTRINGHANDLER_H