Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / url / file-http-base-expected.txt
blob80b0bf1560aa3dc9c6032098d5e2ee24db4023fe
1 Canonicalization of file URLs when the base URL is an http URL
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 FAIL canonicalize('file:c:\\foo\\bar.html') should be file:///C:/foo/bar.html. Was file:///c:/foo/bar.html.
7 FAIL canonicalize('  File:c|////foo\\bar.html') should be file:///C:////foo/bar.html. Was file:///c%7C////foo/bar.html.
8 PASS canonicalize('file:') is 'file:///'
9 FAIL canonicalize('file:UNChost/path') should be file://unchost/path. Was file:///UNChost/path.
10 FAIL canonicalize('c:\\foo\\bar') should be file:///C:/foo/bar. Was c:\foo\bar.
11 FAIL canonicalize('C|/foo/bar') should be file:///C:/foo/bar. Was http://example.com/mock/C%7C/foo/bar.
12 FAIL canonicalize('/C|\\foo\\bar') should be file:///C:/foo/bar. Was http://example.com/C%7C/foo/bar.
13 FAIL canonicalize('//C|/foo/bar') should be file:///C:/foo/bar. Was http://c%7C/foo/bar.
14 FAIL canonicalize('//server/file') should be file://server/file. Was http://server/file.
15 FAIL canonicalize('\\\\server\\file') should be file://server/file. Was http://server/file.
16 FAIL canonicalize('/\\server/file') should be file://server/file. Was http://server/file.
17 FAIL canonicalize('file:c:foo/bar.html') should be file:///C:/foo/bar.html. Was file:///c:foo/bar.html.
18 PASS canonicalize('file:/\\/\\C:\\\\//foo\\bar.html') is 'file:///C:////foo/bar.html'
19 PASS canonicalize('file:///foo/bar.txt') is 'file:///foo/bar.txt'
20 FAIL canonicalize('FILE:/\\/\\7:\\\\//foo\\bar.html') should be file://7:////foo/bar.html. Was file:///7:////foo/bar.html.
21 FAIL canonicalize('file:filer/home\\me') should be file://filer/home/me. Was file:///filer/home/me.
22 FAIL canonicalize('file:///C:/foo/../../../bar.html') should be file:///C:/bar.html. Was file:///bar.html.
23 PASS canonicalize('file:///C:/asdf#\xc2') is 'file:///C:/asdf#\xc2'
24 PASS canonicalize('file:///C:/asdf#Â') is 'file:///C:/asdf#Â'
25 PASS canonicalize('file:///home/me') is 'file:///home/me'
26 PASS canonicalize('file:c:\\foo\\bar.html') is 'file:///c:/foo/bar.html'
27 PASS canonicalize('file:c|//foo\\bar.html') is 'file:///c%7C//foo/bar.html'
28 FAIL canonicalize('//') should be file:///. Was http:.
29 FAIL canonicalize('///') should be file:///. Was http:.
30 FAIL canonicalize('///test') should be file:///test. Was http://test/.
31 PASS canonicalize('file://test') is 'file://test/'
32 PASS canonicalize('file://localhost') is 'file://localhost/'
33 PASS canonicalize('file://localhost/') is 'file://localhost/'
34 PASS canonicalize('file://localhost/test') is 'file://localhost/test'
35 PASS successfullyParsed is true
37 TEST COMPLETE