summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/loader/back-after-same-document-location-replace.html
blob: 3530db6d14e8f6b4cce89f98323911caf73d06db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<body>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

window.onload = function() {
    setTimeout(function() {
        location.href = "#1";
        location.replace("#2");
        history.back();
    }, 0);
};

window.onhashchange = function() {
    if (location.hash != "")
        return;
    document.body.appendChild(document.createTextNode("PASS"));
    if (window.testRunner)
        testRunner.notifyDone();
}
</script>
</body>