summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/url/relative-expected.txt
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-09-03 18:46:30 +0100
committerSteve Block <steveblock@google.com>2010-09-04 20:52:54 +0100
commit430b6b672341c7e8b5e4cfafaaae20315e68701b (patch)
tree3b290f1adb010f09128b054c456832ad896cbcec /LayoutTests/fast/url/relative-expected.txt
parent7797f5cbd60d3a45ba6029508928d7cc7d52849f (diff)
downloadexternal_webkit-430b6b672341c7e8b5e4cfafaaae20315e68701b.zip
external_webkit-430b6b672341c7e8b5e4cfafaaae20315e68701b.tar.gz
external_webkit-430b6b672341c7e8b5e4cfafaaae20315e68701b.tar.bz2
Add fast/url LayoutTests at r66079
All tests pass. Change-Id: I2564b234be722a743e48ad07e3995a654202a208
Diffstat (limited to 'LayoutTests/fast/url/relative-expected.txt')
-rw-r--r--LayoutTests/fast/url/relative-expected.txt63
1 files changed, 63 insertions, 0 deletions
diff --git a/LayoutTests/fast/url/relative-expected.txt b/LayoutTests/fast/url/relative-expected.txt
new file mode 100644
index 0000000..684253f
--- /dev/null
+++ b/LayoutTests/fast/url/relative-expected.txt
@@ -0,0 +1,63 @@
+Test resolution of relative URLs.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS canonicalize('http://another/') is 'http://another/'
+PASS canonicalize('http:////another/') is 'http://another/'
+PASS canonicalize('') is 'http://foo/bar'
+PASS canonicalize('') is 'http://foo/bar'
+PASS canonicalize('') is 'http://foo/bar'
+PASS canonicalize(' another ') is 'http://foo/another'
+PASS canonicalize(' . ') is 'http://foo/'
+PASS canonicalize(' ') is 'http://foo/bar'
+PASS canonicalize('http:path') is 'http://host/path'
+PASS canonicalize('http:path') is 'http://host/a/path'
+FAIL canonicalize('http:/path') should be http://host/path. Was http:/path.
+FAIL canonicalize('HTTP:/path') should be http://host/path. Was HTTP:/path.
+FAIL canonicalize('https:host2') should be https://host2/. Was https:host2.
+PASS canonicalize('htto:/host2') is 'htto:/host2'
+PASS canonicalize('/b/c/d') is 'http://host/b/c/d'
+PASS canonicalize('\\b\\c\\d') is 'http://host/b/c/d'
+PASS canonicalize('/b/../c') is 'http://host/c'
+PASS canonicalize('/b/../c') is 'http://host/c'
+PASS canonicalize('\\b/../c?x#y') is 'http://host/c?x#y'
+PASS canonicalize('/b/../c?x#y') is 'http://host/c?x#y'
+PASS canonicalize('b') is 'http://host/b'
+PASS canonicalize('bc/de') is 'http://host/bc/de'
+PASS canonicalize('bc/de?query#ref') is 'http://host/a/bc/de?query#ref'
+PASS canonicalize('.') is 'http://host/a/'
+PASS canonicalize('..') is 'http://host/'
+PASS canonicalize('./..') is 'http://host/'
+PASS canonicalize('../.') is 'http://host/'
+PASS canonicalize('././.') is 'http://host/a/'
+PASS canonicalize('../../../foo') is 'http://host/foo'
+PASS canonicalize('?foo=bar') is 'http://host/a?foo=bar'
+PASS canonicalize('?') is 'http://host/a?'
+PASS canonicalize('?foo=bar#com') is 'http://host/a?foo=bar#com'
+PASS canonicalize('#ref') is 'http://host/a#ref'
+PASS canonicalize('#') is 'http://host/a#'
+PASS canonicalize('#bye') is 'http://host/a?foo=bar#bye'
+FAIL canonicalize('baz.html') should be . Was baz.html.
+PASS canonicalize('data:baz') is 'data:baz'
+PASS canonicalize('data:/base') is 'data:/base'
+PASS canonicalize('http://host/') is 'http://host/'
+FAIL canonicalize('http:host') should be http://host/. Was http:host.
+PASS canonicalize('./asd:fgh') is 'http://foo/asd:fgh'
+PASS canonicalize(':foo') is 'http://foo/:foo'
+PASS canonicalize(' hello world') is 'http://foo/hello%20world'
+FAIL canonicalize(':foo') should be . Was :foo.
+PASS canonicalize(';foo') is 'http://host/;foo'
+PASS canonicalize(';foo') is 'http://host/;foo'
+PASS canonicalize(';/../bar') is 'http://host/bar'
+PASS canonicalize('//another') is 'http://another/'
+PASS canonicalize('//another/path?query#ref') is 'http://another/path?query#ref'
+FAIL canonicalize('///another/path') should be http://another/path. Was http:/another/path.
+FAIL canonicalize('//Another\\path') should be http://another/path. Was http://Another/path.
+FAIL canonicalize('//') should be http:. Was http:/.
+PASS canonicalize('\\/another/path') is 'http://another/path'
+FAIL canonicalize('/\\Another\\path') should be http://another/path. Was http://Another/path.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+