| <!DOCTYPE html> |
| <body> |
| <script> |
| if (window.testRunner) { |
| testRunner.waitUntilDone(); |
| testRunner.dumpAsText(); |
| } |
| if (location.hash === "") |
| window.location = window.location.href.replace("file:///", "file://example.org/") + "?test#test-host"; |
| else if (location.hash === "#test") |
| window.location = window.location.href.replace("file://example.org/", "file:///").replace("?test#test-host", "") + "?test2#test-host" + window.location.host; |
| else { |
| document.body.innerHTML = window.location.hash === "#test-host" ? "PASS": ("FAIL, got: " + window.location.hash); |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| } |
| </script> |
| </body> |