aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qdeclarativestyledtext
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-12-21 10:19:03 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-05 06:47:26 +0100
commit117f4934dbf444ce871c498f02bb066e4bb5eaa0 (patch)
tree06d77b4a5e90a9fdf31a7c0d113220ed8c3cda1f /tests/auto/qtquick2/qdeclarativestyledtext
parent966e8856837686668d04f089cfb75c2a48ae933e (diff)
Support <pre> in StyleText textFormat
Task-number: QTBUG-23159 Change-Id: I842d066efb3a78defba61cc31060840f771f9b11 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2/qdeclarativestyledtext')
-rw-r--r--tests/auto/qtquick2/qdeclarativestyledtext/tst_qdeclarativestyledtext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qdeclarativestyledtext/tst_qdeclarativestyledtext.cpp b/tests/auto/qtquick2/qdeclarativestyledtext/tst_qdeclarativestyledtext.cpp
index a17c4294b3..5adc6fc70e 100644
--- a/tests/auto/qtquick2/qdeclarativestyledtext/tst_qdeclarativestyledtext.cpp
+++ b/tests/auto/qtquick2/qdeclarativestyledtext/tst_qdeclarativestyledtext.cpp
@@ -114,6 +114,7 @@ void tst_qdeclarativestyledtext::textOutput_data()
QTest::newRow("h5") << "<h5>head" << QChar(QChar::LineSeparator) + QLatin1String("head") << (FormatList() << Format(Format::Bold, 0, 5));
QTest::newRow("h6") << "<h6>head" << QChar(QChar::LineSeparator) + QLatin1String("head") << (FormatList() << Format(Format::Bold, 0, 5));
QTest::newRow("h7") << "<h7>head" << "head" << FormatList();
+ QTest::newRow("pre") << "normal<pre>pre text</pre>normal" << QLatin1String("normal") + QChar(QChar::LineSeparator) + QLatin1String("pre") + QChar(QChar::Nbsp) + QLatin1String("text") + QChar(QChar::LineSeparator) + QLatin1String("normal") << (FormatList() << Format(0, 6, 9));
}
void tst_qdeclarativestyledtext::textOutput()