summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2009-11-27 14:14:45 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2009-11-27 14:22:51 (GMT)
commit10b5653ad4f25c6f37d640facf4a5ef01fe25926 (patch)
treed594b5d370e59b37b19617a0e82de5c429119cfd /tests
parent71c3227ba260b964b0c9516f05ad4f2e6fa72f69 (diff)
downloadQt-10b5653ad4f25c6f37d640facf4a5ef01fe25926.zip
Qt-10b5653ad4f25c6f37d640facf4a5ef01fe25926.tar.gz
Qt-10b5653ad4f25c6f37d640facf4a5ef01fe25926.tar.bz2
QNetworkReply autotest: adapt to QNetworkCookieJar change
with commit 0d20ec8604b318ceafd6c35dfe1d73519bf024d3 I changed QNetworkCookieJar behavior, this commit adapts the QNetworkReply autotest to it. Reviewed-by: TrustMe
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qnetworkreply/tst_qnetworkreply.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
index 5fe716a..6d43c1d 100644
--- a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
+++ b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp
@@ -3241,8 +3241,11 @@ void tst_QNetworkReply::receiveCookiesFromHttp_data()
cookie = QNetworkCookie("a", "b");
cookie.setPath("/not/part-of-path");
header << cookie;
+ cookie.setDomain(QtNetworkSettings::serverName());
+ jar << cookie;
QTest::newRow("invalid-cookie-path") << "a=b; path=/not/part-of-path" << header << jar;
+ jar.clear();
cookie = QNetworkCookie("a", "b");
cookie.setDomain(".example.com");
header.clear();