1 /* 2 SPDX-FileCopyrightText: 2020-2021 Laurent Montel <montel@kde.org> 3 4 SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #pragma once 8 #include <QObject> 9 10 class TextHTMLBuilderTest : public QObject 11 { 12 Q_OBJECT 13 public: 14 explicit TextHTMLBuilderTest(QObject *parent = nullptr); 15 ~TextHTMLBuilderTest() override = default; 16 private Q_SLOTS: 17 void testHtmlText_data(); 18 void testHtmlText(); 19 void testHtmlWithTab(); 20 void testSingleFormat(); 21 void testDoubleFormat(); 22 void testDoubleStartDifferentFinish(); 23 void testDoubleStartDifferentFinishReverseOrder(); 24 void testDifferentStartDoubleFinish(); 25 void testDifferentStartDoubleFinishReverseOrder(); 26 void testOverlap(); 27 void testAnchor(); 28 void testAnchorWithFormattedContent(); 29 void testAdjacentAnchors(); 30 void testNestedFormatting(); 31 void testSpan(); 32 void testDoubleSpan(); 33 void testSpanNesting(); 34 void testEdgeCaseLeft(); 35 void testEdgeCaseRight(); 36 void testImage(); 37 void testImageResized(); 38 void testEachFormatTagSingly(); 39 void testHorizontalRule(); 40 void testNewlines(); 41 void testNewlinesThroughQTextCursor(); 42 void testInsertImage(); 43 void testInsertImageWithSize(); 44 void testTitle1(); 45 void testBug421908(); 46 void testBug421908_2(); 47 void testBug421908_full(); 48 void testBug436880(); 49 void testBug442416(); 50 void testBug442416Bis(); 51 void testBugTextColor(); 52 void testBugIndent443534(); 53 }; 54 55