| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |