summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/platform/win/fast/url/relative-win-expected.txt
blob: dd30d9fce6086a699ffc2c13e16a01708ca0f405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Test resolution of relative Windows-like URLs.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS canonicalize('http://host/') is 'http://host/'
PASS canonicalize('bar') is 'file:///C:/bar'
PASS canonicalize('../../../bar.html') is 'file:///C:/bar.html'
PASS canonicalize('/../bar.html') is 'file:///C:/bar.html'
FAIL canonicalize('\\\\another\\path') should be . Was file://another/path.
PASS canonicalize('//c:/foo') is 'file:///C:/foo'
PASS canonicalize('//localhost/c:/foo') is 'file:///C:/foo'
FAIL canonicalize('c:') should be . Was file:///C:/.
FAIL canonicalize('c:/foo') should be . Was file:///C:/foo.
FAIL canonicalize('c:\\foo') should be . Was file:///C:/foo.
PASS canonicalize('/z:/bar') is 'file:///Z:/bar'
PASS canonicalize('/bar') is 'file:///C:/bar'
FAIL canonicalize('/bar') should be file://localhost/C:/bar. Was file:///C:/bar.
PASS canonicalize('/bar') is 'file:///C:/bar'
PASS canonicalize('//somehost/path') is 'file://somehost/path'
PASS canonicalize('/\\//somehost/path') is 'file://somehost/path'
PASS successfullyParsed is true

TEST COMPLETE