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 PlainTextMarkupBuilderTest : public QObject
0011 {
0012     Q_OBJECT
0013 public:
0014     explicit PlainTextMarkupBuilderTest(QObject *parent = nullptr);
0015     ~PlainTextMarkupBuilderTest() override = default;
0016 
0017 private Q_SLOTS:
0018     void testPlainText();
0019     void testPlainText_data();
0020     // Test paragraph contents:
0021     void testSingleFormat();
0022     void testDoubleFormat();
0023     void testDoubleStartDifferentFinish();
0024     void testDoubleStartDifferentFinishReverseOrder();
0025     void testDifferentStartDoubleFinish();
0026     void testDifferentStartDoubleFinishReverseOrder();
0027     void testOverlap();
0028     void testAnchor();
0029     void testAnchorWithFormattedContent();
0030     void testAdjacentAnchors();
0031     void testNestedFormatting();
0032     void testSpan();
0033     void testDoubleSpan();
0034     void testSpanNesting();
0035     void testEdgeCaseLeft();
0036     void testEdgeCaseRight();
0037     void testImage();
0038     void testImageResized();
0039     void testEachFormatTagSingly();
0040     void testHorizontalRule();
0041     void testNewlines();
0042     void testEmptyParagraphs();
0043     void testNewlinesThroughQTextCursor();
0044     void testBrInsideParagraph();
0045     void testLongDocument();
0046     void testBrInsideAnchor();
0047 };