File indexing completed on 2025-01-05 04:54:43

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include <QObject>
0009 
0010 class TextHTMLBuilderTest : public QObject
0011 {
0012     Q_OBJECT
0013 public:
0014     explicit TextHTMLBuilderTest(QObject *parent = nullptr);
0015     ~TextHTMLBuilderTest() override = default;
0016 private Q_SLOTS:
0017     void testHtmlText_data();
0018     void testHtmlText();
0019     void testHtmlWithTab();
0020     void testSingleFormat();
0021     void testDoubleFormat();
0022     void testDoubleStartDifferentFinish();
0023     void testDoubleStartDifferentFinishReverseOrder();
0024     void testDifferentStartDoubleFinish();
0025     void testDifferentStartDoubleFinishReverseOrder();
0026     void testOverlap();
0027     void testAnchor();
0028     void testAnchorWithFormattedContent();
0029     void testAdjacentAnchors();
0030     void testNestedFormatting();
0031     void testSpan();
0032     void testDoubleSpan();
0033     void testSpanNesting();
0034     void testEdgeCaseLeft();
0035     void testEdgeCaseRight();
0036     void testImage();
0037     void testImageResized();
0038     void testEachFormatTagSingly();
0039     void testHorizontalRule();
0040     void testNewlines();
0041     void testNewlinesThroughQTextCursor();
0042     void testInsertImage();
0043     void testInsertImageWithSize();
0044     void testTitle1();
0045     void testBug421908();
0046     void testBug421908_2();
0047     void testBug421908_full();
0048     void testBug436880();
0049     void testBug442416();
0050     void testBug442416Bis();
0051     void testBugTextColor();
0052     void testBugIndent443534();
0053 };