Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/url/relative-expected.txt

Issue 2685843003: 'data:' may not be used as a document's base URL. (Closed)
Patch Set: Tests. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Test resolution of relative URLs. 1 Test resolution of relative URLs.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS canonicalize('http://another/') is 'http://another/' 6 PASS canonicalize('http://another/') is 'http://another/'
7 PASS canonicalize('http:////another/') is 'http://another/' 7 PASS canonicalize('http:////another/') is 'http://another/'
8 PASS canonicalize('') is 'http://foo/bar' 8 PASS canonicalize('') is 'http://foo/bar'
9 PASS canonicalize('') is 'http://foo/bar' 9 PASS canonicalize('') is 'http://foo/bar'
10 PASS canonicalize('') is 'http://foo/bar' 10 PASS canonicalize('') is 'http://foo/bar'
(...skipping 20 matching lines...) Expand all
31 PASS canonicalize('./..') is 'http://host/' 31 PASS canonicalize('./..') is 'http://host/'
32 PASS canonicalize('../.') is 'http://host/' 32 PASS canonicalize('../.') is 'http://host/'
33 PASS canonicalize('././.') is 'http://host/a/' 33 PASS canonicalize('././.') is 'http://host/a/'
34 PASS canonicalize('../../../foo') is 'http://host/foo' 34 PASS canonicalize('../../../foo') is 'http://host/foo'
35 PASS canonicalize('?foo=bar') is 'http://host/a?foo=bar' 35 PASS canonicalize('?foo=bar') is 'http://host/a?foo=bar'
36 PASS canonicalize('?') is 'http://host/a?' 36 PASS canonicalize('?') is 'http://host/a?'
37 PASS canonicalize('?foo=bar#com') is 'http://host/a?foo=bar#com' 37 PASS canonicalize('?foo=bar#com') is 'http://host/a?foo=bar#com'
38 PASS canonicalize('#ref') is 'http://host/a#ref' 38 PASS canonicalize('#ref') is 'http://host/a#ref'
39 PASS canonicalize('#') is 'http://host/a#' 39 PASS canonicalize('#') is 'http://host/a#'
40 PASS canonicalize('#bye') is 'http://host/a?foo=bar#bye' 40 PASS canonicalize('#bye') is 'http://host/a?foo=bar#bye'
41 PASS canonicalize('baz.html') is ''
42 PASS canonicalize('data:baz') is 'data:baz'
43 PASS canonicalize('data:/base') is 'data:/base'
44 PASS canonicalize('http://host/') is 'http://host/'
45 PASS canonicalize('http:host') is 'http://host/'
46 PASS canonicalize('./asd:fgh') is 'http://foo/asd:fgh' 41 PASS canonicalize('./asd:fgh') is 'http://foo/asd:fgh'
47 PASS canonicalize(':foo') is 'http://foo/:foo' 42 PASS canonicalize(':foo') is 'http://foo/:foo'
48 PASS canonicalize(' hello world') is 'http://foo/hello%20world' 43 PASS canonicalize(' hello world') is 'http://foo/hello%20world'
49 PASS canonicalize(':foo') is ''
50 PASS canonicalize(';foo') is 'http://host/;foo' 44 PASS canonicalize(';foo') is 'http://host/;foo'
51 PASS canonicalize(';foo') is 'http://host/;foo' 45 PASS canonicalize(';foo') is 'http://host/;foo'
52 PASS canonicalize(';/../bar') is 'http://host/bar' 46 PASS canonicalize(';/../bar') is 'http://host/bar'
53 PASS canonicalize('//another') is 'http://another/' 47 PASS canonicalize('//another') is 'http://another/'
54 PASS canonicalize('//another/path?query#ref') is 'http://another/path?query#ref' 48 PASS canonicalize('//another/path?query#ref') is 'http://another/path?query#ref'
55 PASS canonicalize('///another/path') is 'http://another/path' 49 PASS canonicalize('///another/path') is 'http://another/path'
56 PASS canonicalize('//Another\\path') is 'http://another/path' 50 PASS canonicalize('//Another\\path') is 'http://another/path'
57 PASS canonicalize('//') is 'http:' 51 PASS canonicalize('//') is 'http:'
58 PASS canonicalize('\\/another/path') is 'http://another/path' 52 PASS canonicalize('\\/another/path') is 'http://another/path'
59 PASS canonicalize('/\\Another\\path') is 'http://another/path' 53 PASS canonicalize('/\\Another\\path') is 'http://another/path'
60 PASS successfullyParsed is true 54 PASS successfullyParsed is true
61 55
62 TEST COMPLETE 56 TEST COMPLETE
63 57
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698