Lines Matching refs:file
1 Canonicalization of file URLs
6 FAIL canonicalize('file:c:\\foo\\bar.html') should be file:///C:/foo/bar.html. Was file:///tmp/mock…
7 FAIL canonicalize(' File:c|////foo\\bar.html') should be file:///C:////foo/bar.html. Was file:///t…
8 FAIL canonicalize('file:') should be file:///. Was file:///tmp/mock/path.
9 FAIL canonicalize('file:UNChost/path') should be file://unchost/path. Was file:///tmp/mock/UNChost/…
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 file:///tmp/mock/C|/foo/bar.
12 FAIL canonicalize('/C|\\foo\\bar') should be file:///C:/foo/bar. Was file:///C|/foo/bar.
13 FAIL canonicalize('//C|/foo/bar') should be file:///C:/foo/bar. Was file://C|/foo/bar.
14 PASS canonicalize('//server/file') is 'file://server/file'
15 PASS canonicalize('\\\\server\\file') is 'file://server/file'
16 PASS canonicalize('/\\server/file') is 'file://server/file'
17 FAIL canonicalize('file:c:foo/bar.html') should be file:///C:/foo/bar.html. Was file:///tmp/mock/c:…
18 FAIL canonicalize('file:/\\/\\C:\\\\//foo\\bar.html') should be file:///C:////foo/bar.html. Was fil…
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…
21 FAIL canonicalize('file:filer/home\\me') should be file://filer/home/me. Was file:///tmp/mock/filer…
22 FAIL canonicalize('file:///C:/foo/../../../bar.html') should be file:///C:/bar.html. Was file:///ba…
23 FAIL canonicalize('file:///C:/asdf#\xc2') should be file:///C:/asdf#�. Was file:///C:/asdf#%C2.
24 PASS canonicalize('file:///home/me') is 'file:///home/me'
25 FAIL canonicalize('file:c:\\foo\\bar.html') should be file:///c:/foo/bar.html. Was file:///tmp/mock…
26 FAIL canonicalize('file:c|//foo\\bar.html') should be file:///c%7C//foo/bar.html. Was file:///tmp/m…
27 FAIL canonicalize('//') should be file:///. Was file:.
28 PASS canonicalize('///') is 'file:///'
29 PASS canonicalize('///test') is 'file:///test'
30 FAIL canonicalize('file://test') should be file://test/. Was file://test.
31 FAIL canonicalize('file://localhost') should be file://localhost/. Was file:.
32 FAIL canonicalize('file://localhost/') should be file://localhost/. Was file:///.
33 FAIL canonicalize('file://localhost/test') should be file://localhost/test. Was file:///test.