summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-09-28 13:33:55 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-09-28 13:33:55 (GMT)
commit6c58b17004d35ed652b5e93316f3f1c9d002d3b6 (patch)
tree9e027b402fd3f3beb7131eb4b03950b54c74ac50 /tests/auto
parent62624c575bd784b36b1d080d32f168e0668ca15b (diff)
downloadQt-6c58b17004d35ed652b5e93316f3f1c9d002d3b6.zip
Qt-6c58b17004d35ed652b5e93316f3f1c9d002d3b6.tar.gz
Qt-6c58b17004d35ed652b5e93316f3f1c9d002d3b6.tar.bz2
tst_qnetworkcookiejar: Backported 4.6 changes
Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qnetworkcookiejar/tst_qnetworkcookiejar.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/auto/qnetworkcookiejar/tst_qnetworkcookiejar.cpp b/tests/auto/qnetworkcookiejar/tst_qnetworkcookiejar.cpp
index 946f4d3..9b9c56a 100644
--- a/tests/auto/qnetworkcookiejar/tst_qnetworkcookiejar.cpp
+++ b/tests/auto/qnetworkcookiejar/tst_qnetworkcookiejar.cpp
@@ -220,21 +220,21 @@ void tst_QNetworkCookieJar::cookiesForUrl_data()
QNetworkCookie cookie;
cookie.setName("a");
cookie.setPath("/web");
- cookie.setDomain(".trolltech.com");
+ cookie.setDomain(".nokia.com");
allCookies += cookie;
QTest::newRow("no-match-1") << allCookies << "http://foo.bar/" << result;
QTest::newRow("no-match-2") << allCookies << "http://foo.bar/web" << result;
QTest::newRow("no-match-3") << allCookies << "http://foo.bar/web/wiki" << result;
- QTest::newRow("no-match-4") << allCookies << "http://trolltech.com" << result;
+ QTest::newRow("no-match-4") << allCookies << "http://nokia.com" << result;
QTest::newRow("no-match-5") << allCookies << "http://qt.nokia.com" << result;
- QTest::newRow("no-match-6") << allCookies << "http://trolltech.com/webinar" << result;
+ QTest::newRow("no-match-6") << allCookies << "http://nokia.com/webinar" << result;
QTest::newRow("no-match-7") << allCookies << "http://qt.nokia.com/webinar" << result;
result = allCookies;
- QTest::newRow("match-1") << allCookies << "http://trolltech.com/web" << result;
- QTest::newRow("match-2") << allCookies << "http://trolltech.com/web/" << result;
- QTest::newRow("match-3") << allCookies << "http://trolltech.com/web/content" << result;
+ QTest::newRow("match-1") << allCookies << "http://nokia.com/web" << result;
+ QTest::newRow("match-2") << allCookies << "http://nokia.com/web/" << result;
+ QTest::newRow("match-3") << allCookies << "http://nokia.com/web/content" << result;
QTest::newRow("match-4") << allCookies << "http://qt.nokia.com/web" << result;
QTest::newRow("match-4") << allCookies << "http://qt.nokia.com/web/" << result;
QTest::newRow("match-6") << allCookies << "http://qt.nokia.com/web/content" << result;
@@ -243,21 +243,21 @@ void tst_QNetworkCookieJar::cookiesForUrl_data()
allCookies += cookie;
// exact same results as before:
- QTest::newRow("one-match-1") << allCookies << "http://trolltech.com/web" << result;
- QTest::newRow("one-match-2") << allCookies << "http://trolltech.com/web/" << result;
- QTest::newRow("one-match-3") << allCookies << "http://trolltech.com/web/content" << result;
+ QTest::newRow("one-match-1") << allCookies << "http://nokia.com/web" << result;
+ QTest::newRow("one-match-2") << allCookies << "http://nokia.com/web/" << result;
+ QTest::newRow("one-match-3") << allCookies << "http://nokia.com/web/content" << result;
QTest::newRow("one-match-4") << allCookies << "http://qt.nokia.com/web" << result;
QTest::newRow("one-match-4") << allCookies << "http://qt.nokia.com/web/" << result;
QTest::newRow("one-match-6") << allCookies << "http://qt.nokia.com/web/content" << result;
result.prepend(cookie); // longer path, it must match first
- QTest::newRow("two-matches-1") << allCookies << "http://trolltech.com/web/wiki" << result;
+ QTest::newRow("two-matches-1") << allCookies << "http://nokia.com/web/wiki" << result;
QTest::newRow("two-matches-2") << allCookies << "http://qt.nokia.com/web/wiki" << result;
// invert the order;
allCookies.clear();
allCookies << result.at(1) << result.at(0);
- QTest::newRow("two-matches-3") << allCookies << "http://trolltech.com/web/wiki" << result;
+ QTest::newRow("two-matches-3") << allCookies << "http://nokia.com/web/wiki" << result;
QTest::newRow("two-matches-4") << allCookies << "http://qt.nokia.com/web/wiki" << result;
// expired cookie
@@ -265,9 +265,9 @@ void tst_QNetworkCookieJar::cookiesForUrl_data()
cookie.setExpirationDate(QDateTime::fromString("09-Nov-1999", "dd-MMM-yyyy"));
allCookies += cookie;
result.clear();
- QTest::newRow("exp-match-1") << allCookies << "http://trolltech.com/web" << result;
- QTest::newRow("exp-match-2") << allCookies << "http://trolltech.com/web/" << result;
- QTest::newRow("exp-match-3") << allCookies << "http://trolltech.com/web/content" << result;
+ QTest::newRow("exp-match-1") << allCookies << "http://nokia.com/web" << result;
+ QTest::newRow("exp-match-2") << allCookies << "http://nokia.com/web/" << result;
+ QTest::newRow("exp-match-3") << allCookies << "http://nokia.com/web/content" << result;
QTest::newRow("exp-match-4") << allCookies << "http://qt.nokia.com/web" << result;
QTest::newRow("exp-match-4") << allCookies << "http://qt.nokia.com/web/" << result;
QTest::newRow("exp-match-6") << allCookies << "http://qt.nokia.com/web/content" << result;