relative-win-expected.txt revision 430b6b672341c7e8b5e4cfafaaae20315e68701b
1Test resolution of relative Windows-like URLs. 2 3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6PASS canonicalize('http://host/') is 'http://host/' 7PASS canonicalize('bar') is 'file:///C:/bar' 8FAIL canonicalize('../../../bar.html') should be file:///C:/bar.html. Was file:///bar.html. 9FAIL canonicalize('/../bar.html') should be file:///C:/bar.html. Was file:///bar.html. 10FAIL canonicalize('\\\\another\\path') should be . Was http://another/path. 11FAIL canonicalize('//c:/foo') should be file:///C:/foo. Was file://c:/foo. 12FAIL canonicalize('//localhost/c:/foo') should be file:///C:/foo. Was file:///c:/foo. 13FAIL canonicalize('c:') should be . Was c:. 14FAIL canonicalize('c:/foo') should be . Was c:/foo. 15FAIL canonicalize('c:\\foo') should be . Was c:/foo. 16FAIL canonicalize('/z:/bar') should be file:///Z:/bar. Was file:///z:/bar. 17FAIL canonicalize('/bar') should be file:///C:/bar. Was file:///bar. 18FAIL canonicalize('/bar') should be file://localhost/C:/bar. Was file:///bar. 19FAIL canonicalize('/bar') should be file:///C:/bar. Was file:///bar. 20PASS canonicalize('//somehost/path') is 'file://somehost/path' 21FAIL canonicalize('/\\//somehost/path') should be file://somehost/path. Was file:////somehost/path. 22PASS successfullyParsed is true 23 24TEST COMPLETE 25 26