diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-03-18 14:40:35 +0100 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-06-26 14:55:34 +0200 |
commit | 043465a5902e95decde01cf4a50ecd59472b9ecd (patch) | |
tree | b5f4233e9ffdb9ef6313c15937186423efa27085 /tests/auto/qurl | |
parent | 09da036f4f1857941af2939558e36172f5be4499 (diff) |
Autotest: Remove faulty test case: xn--fuball-cta.de is not allowed
There's only one permitted encoding for a hostname. If "fußball.de"
expands to "fussball.de" (due to NFKC), then it can't be equivalent to
xn-fuball-cta.de.
Diffstat (limited to 'tests/auto/qurl')
-rw-r--r-- | tests/auto/qurl/tst_qurl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qurl/tst_qurl.cpp b/tests/auto/qurl/tst_qurl.cpp index 60d73913f0..47c86ccd29 100644 --- a/tests/auto/qurl/tst_qurl.cpp +++ b/tests/auto/qurl/tst_qurl.cpp @@ -2412,9 +2412,7 @@ void tst_QUrl::hasQueryItem() void tst_QUrl::nameprep() { QUrl url(QString::fromUtf8("http://www.fu""\xc3""\x9f""ball.de/")); - QUrl url2 = QUrl::fromEncoded("http://www.xn--fuball-cta.de/"); - QCOMPARE(url2.toString(), QString::fromLatin1("http://www.fussball.de/")); - QCOMPARE(url.toString(), url2.toString()); // should be identical + QCOMPARE(url.toString(), QString::fromLatin1("http://www.fussball.de/")); } void tst_QUrl::isValid() |