summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/url/script-tests/segments.js
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-04-12 08:11:56 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-12 08:11:56 -0700
commit84b96dda1738f816b0ff021d76a16caa9847ee26 (patch)
treee79dba6a969753c85e0e87dfada8683d32dab3dc /LayoutTests/fast/url/script-tests/segments.js
parentba8b643c79877a23cd76135cfc0e72918db70892 (diff)
parente48d279609693b4d164199748c93ad791547c649 (diff)
downloadexternal_webkit-84b96dda1738f816b0ff021d76a16caa9847ee26.zip
external_webkit-84b96dda1738f816b0ff021d76a16caa9847ee26.tar.gz
external_webkit-84b96dda1738f816b0ff021d76a16caa9847ee26.tar.bz2
Merge "Cherry-pick WebKit change r96779 to fix window.location"
Diffstat (limited to 'LayoutTests/fast/url/script-tests/segments.js')
-rw-r--r--LayoutTests/fast/url/script-tests/segments.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/LayoutTests/fast/url/script-tests/segments.js b/LayoutTests/fast/url/script-tests/segments.js
index a1e5dba..a83cb61 100644
--- a/LayoutTests/fast/url/script-tests/segments.js
+++ b/LayoutTests/fast/url/script-tests/segments.js
@@ -1,6 +1,6 @@
description("Test URL segmentation");
-cases = [
+cases = [
// [URL, [SCHEME, HOST, PORT, PATH, QUERY, REF]]
["http://user:pass@foo:21/bar;par?b#c", ["http:","foo","21","/bar;par","?b","#c"]],
["http:foo.com", ["http:","example.org","","/foo/foo.com","",""]],
@@ -91,7 +91,14 @@ cases = [
["wss:example.com/", ["wss:","example.com","","/","",""]],
["data:example.com/", ["data:","","","example.com/","",""]],
["javascript:example.com/", ["javascript:","","","example.com/","",""]],
- ["mailto:example.com/", ["mailto:","","","example.com/","",""]],
+ ["mailto:example.com/", ["mailto:","","","example.com/","",""]],
+
+ ["/a/b/c", ["http:","example.org","","/a/b/c","",""]],
+ ["/a/ /c", ["http:","example.org","","/a/%20/c","",""]],
+ ["/a%2fc", ["http:","example.org","","/a%2fc","",""]],
+ ["/a/%2f/c", ["http:","example.org","","/a/%2f/c","",""]],
+
+ ["#\u03B2", ["http:","example.org","","/foo/bar","","#\u03B2"]],
];
var originalBaseURL = canonicalize(".");