Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / navigation / same-and-different-back.html
1 <body>
2 We pass if we don't crash under ASAN.
3 <script>
4 if (window.testRunner) {
5     testRunner.dumpAsText();
6     testRunner.dumpBackForwardList();
7     testRunner.waitUntilDone();
8 }
9
10 var setupStepsDone = 0;
11 function setupDone() {
12     setupStepsDone++;
13     if (setupStepsDone < 2)
14         return;
15
16     // Send a backspace to trigger a back navigation.
17     if (window.eventSender)
18         eventSender.keyDown('\u0008');
19 }
20
21 function addChild() {
22     var i = document.createElement("iframe");
23     i.src = "about:blank";
24     document.body.appendChild(i);
25     if (window.testRunner)
26         testRunner.notifyDone();
27 }
28 </script>
29 <iframe src="resources/pushState-onload.html"></iframe>
30 <iframe src="resources/location-replace.html"></iframe>
31 </body>