Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / loader / back-after-same-document-location-replace.html
1 <body>
2 <script>
3 if (window.testRunner) {
4     testRunner.dumpAsText();
5     testRunner.waitUntilDone();
6 }
7
8 window.onload = function() {
9     setTimeout(function() {
10         location.href = "#1";
11         location.replace("#2");
12         history.back();
13     }, 0);
14 };
15
16 window.onhashchange = function() {
17     if (location.hash != "")
18         return;
19     document.body.appendChild(document.createTextNode("PASS"));
20     if (window.testRunner)
21         testRunner.notifyDone();
22 }
23 </script>
24 </body>