diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-05-26 08:35:52 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2010-05-26 08:36:14 (GMT) |
commit | 0218fb14f3f05df746d7730f45a6137b33029dad (patch) | |
tree | 50996f678e10c51135368a2bc6b73c3dac9d6da6 /tests/auto/utf8 | |
parent | 00edad4373d394ed9f828b1fa887003f87c5fa6f (diff) | |
download | Qt-0218fb14f3f05df746d7730f45a6137b33029dad.zip Qt-0218fb14f3f05df746d7730f45a6137b33029dad.tar.gz Qt-0218fb14f3f05df746d7730f45a6137b33029dad.tar.bz2 |
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.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/utf8/tst_utf8.cpp b/tests/auto/utf8/tst_utf8.cpp index 7bbbfab..9b6b8c1 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"); |