summaryrefslogtreecommitdiffstats
path: root/tests/auto/utf8
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-05-26 10:35:52 +0200
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2010-05-26 10:36:14 +0200
commit0218fb14f3f05df746d7730f45a6137b33029dad (patch)
tree50996f678e10c51135368a2bc6b73c3dac9d6da6 /tests/auto/utf8
parent00edad4373d394ed9f828b1fa887003f87c5fa6f (diff)
Add support of high unicodes in QUrl.
Fix some typos in the test data (all 3 typos are already fixed in the original testsuite). Add incorrect utf-8 data (sub)test from nameprep testsuite. Reviewed-by: Andreas Merge-Request: 605 Merge-request: 605 Reviewed-by: Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>
Diffstat (limited to 'tests/auto/utf8')
-rw-r--r--tests/auto/utf8/tst_utf8.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/utf8/tst_utf8.cpp b/tests/auto/utf8/tst_utf8.cpp
index 7bbbfabe4f..9b6b8c156d 100644
--- a/tests/auto/utf8/tst_utf8.cpp
+++ b/tests/auto/utf8/tst_utf8.cpp
@@ -210,7 +210,9 @@ void tst_Utf8::invalidUtf8_data()
QTest::addColumn<QByteArray>("utf8");
QTest::newRow("1char") << QByteArray("\x80");
- QTest::newRow("2chars") << QByteArray("\xC2\xC0");
+ QTest::newRow("2chars-1") << QByteArray("\xC2\xC0");
+ QTest::newRow("2chars-2") << QByteArray("\xC3\xDF");
+ QTest::newRow("2chars-3") << QByteArray("\xC7\xF0");
QTest::newRow("3chars-1") << QByteArray("\xE0\xA0\xC0");
QTest::newRow("3chars-2") << QByteArray("\xE0\xC0\xA0");
QTest::newRow("4chars-1") << QByteArray("\xF0\x90\x80\xC0");