Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / window-location-href-file-urls.html
blob1175fe0478cdc9d2f12516e5d953ff367951ba17
1 <html>
2 <head>
3 <script>
4 function debug(str) {
5 var d = document.getElementById('console');
6 d.appendChild(document.createTextNode(str));
9 function runTests() {
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 var str = window.location.href;
15 if (str.substr(0, 17) == 'file://localhost/' ||
16 str.substr(0, 8) == 'file:///')
17 debug('SUCCESS');
18 else
19 debug('FAILURE. String is ' + str);
21 </script>
22 </head>
23 <body onload="runTests();">
24 This tests that window.location.href serializes file urls correctly. If the test is successful, the text "SUCCESS" should be shown below.
25 <pre id="console">
26 </pre>
27 </body>
28 </html>