summaryrefslogtreecommitdiffstats
path: root/webkit/tools/webcore_unit_tests
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-02 22:22:40 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-02 22:22:40 +0000
commit6b4f519ef5dd0c7ae28473e6aba0a090f95bd02c (patch)
tree8ed4c61a162e13a9dbda4d2a4f8e50b61f48aa5c /webkit/tools/webcore_unit_tests
parentd53a42a4cb4be72ff79ba1b01869fe1e38888149 (diff)
downloadchromium_src-6b4f519ef5dd0c7ae28473e6aba0a090f95bd02c.zip
chromium_src-6b4f519ef5dd0c7ae28473e6aba0a090f95bd02c.tar.gz
chromium_src-6b4f519ef5dd0c7ae28473e6aba0a090f95bd02c.tar.bz2
Fix unittest to match new querystring parsing rules.
(See also http://codereview.chromium.org/27342) Review URL: http://codereview.chromium.org/28320 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/webcore_unit_tests')
-rw-r--r--webkit/tools/webcore_unit_tests/GKURL_unittest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/tools/webcore_unit_tests/GKURL_unittest.cpp b/webkit/tools/webcore_unit_tests/GKURL_unittest.cpp
index 0ac8957..683b6a2 100644
--- a/webkit/tools/webcore_unit_tests/GKURL_unittest.cpp
+++ b/webkit/tools/webcore_unit_tests/GKURL_unittest.cpp
@@ -83,9 +83,9 @@ TEST(GKURL, SameGetters) {
const char* ref;
bool has_ref;
} cases[] = {
- {"http://www.google.com/foo/blah?bar=baz#ref", "http", "www.google.com", 0, "", NULL, "blah", "?bar=baz", "ref", true},
+ {"http://www.google.com/foo/blah?bar=baz#ref", "http", "www.google.com", 0, "", NULL, "blah", "bar=baz", "ref", true},
{"http://foo.com:1234/foo/bar/", "http", "foo.com", 1234, "", NULL, "bar", "", NULL, false},
- {"http://www.google.com?#", "http", "www.google.com", 0, "", NULL, NULL, "?", "", true},
+ {"http://www.google.com?#", "http", "www.google.com", 0, "", NULL, NULL, "", "", true},
{"https://me:pass@google.com:23#foo", "https", "google.com", 23, "me", "pass", NULL, "", "foo", true},
{"javascript:hello!//world", "javascript", "", 0, "", NULL, "world", "", NULL, false},
};
@@ -141,7 +141,7 @@ TEST(GKURL, DifferentGetters) {
{"http://\xe4\xbd\xa0\xe5\xa5\xbd\xe4\xbd\xa0\xe5\xa5\xbd/", "http", "xn--6qqa088eba", 0, "", NULL, "/", NULL, "", NULL},
// WebKit %-escapes non-ASCII characters in reference, but we don't.
- {"http://www.google.com/foo/blah?bar=baz#\xce\xb1\xce\xb2", "http", "www.google.com", 0, "", NULL, "/foo/blah/", "blah", "?bar=baz", "\xce\xb1\xce\xb2"}
+ {"http://www.google.com/foo/blah?bar=baz#\xce\xb1\xce\xb2", "http", "www.google.com", 0, "", NULL, "/foo/blah/", "blah", "bar=baz", "\xce\xb1\xce\xb2"}
};
for (size_t i = 0; i < arraysize(cases); i++) {