summaryrefslogtreecommitdiffstats
path: root/tests/auto/qurl
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-01-07 16:06:12 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-01-07 16:06:12 (GMT)
commite77f4301e8154212d1410a762e0e0279c5b3069c (patch)
treea51768c3763d426567816cc2b9d5b6a59e56990a /tests/auto/qurl
parent606294044df3cf318bd6bb6f2e73389d84e3a032 (diff)
parent2f2837888324b6d75ac1be170790772d1fcf5f17 (diff)
downloadQt-e77f4301e8154212d1410a762e0e0279c5b3069c.zip
Qt-e77f4301e8154212d1410a762e0e0279c5b3069c.tar.gz
Qt-e77f4301e8154212d1410a762e0e0279c5b3069c.tar.bz2
Merge branch 4.7 into qt-master-from-4.7
Diffstat (limited to 'tests/auto/qurl')
-rw-r--r--tests/auto/qurl/tst_qurl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qurl/tst_qurl.cpp b/tests/auto/qurl/tst_qurl.cpp
index c089a59..a00ccf9 100644
--- a/tests/auto/qurl/tst_qurl.cpp
+++ b/tests/auto/qurl/tst_qurl.cpp
@@ -679,6 +679,14 @@ void tst_QUrl::setUrl()
QCOMPARE(url.encodedPath().constData(), "text/javascript,d5%20%3D%20'five%5Cu0027s'%3B");
}
+ { //check it calls detach
+ QUrl u1("http://aaa.com");
+ QUrl u2 = u1;
+ u2.setUrl("http://bbb.com");
+ QCOMPARE(u1.host(), QString::fromLatin1("aaa.com"));
+ QCOMPARE(u2.host(), QString::fromLatin1("bbb.com"));
+ }
+
/*
The tests below are copied from kdelibs/kdecore/tests/kurltest.cpp (an old version of)