summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-03-18 13:40:35 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-06-26 12:55:34 (GMT)
commit043465a5902e95decde01cf4a50ecd59472b9ecd (patch)
treeb5f4233e9ffdb9ef6313c15937186423efa27085 /tests
parent09da036f4f1857941af2939558e36172f5be4499 (diff)
downloadQt-043465a5902e95decde01cf4a50ecd59472b9ecd.zip
Qt-043465a5902e95decde01cf4a50ecd59472b9ecd.tar.gz
Qt-043465a5902e95decde01cf4a50ecd59472b9ecd.tar.bz2
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')
-rw-r--r--tests/auto/qurl/tst_qurl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qurl/tst_qurl.cpp b/tests/auto/qurl/tst_qurl.cpp
index 60d7391..47c86cc 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()