Upstream version 9.38.198.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 function sameDocumentSetupDone() {
11     frames[1].location.replace("notify-parent-setup-done.html");
12 }
13
14 function differentDocumentSetupDone() {
15     setTimeout(function() {
16         // Send a backspace to trigger a back navigation.
17         if (window.eventSender)
18             eventSender.keyDown('\u0008');
19      }, 0);
20 }
21
22 function addChild() {
23     var i = document.createElement("iframe");
24     i.src = "about:blank";
25     document.body.appendChild(i);
26     if (window.testRunner)
27         testRunner.notifyDone();
28 }
29 </script>
30 <iframe src="resources/pushState-onload.html"></iframe>
31 <iframe src="resources/blank.txt"></iframe>
32 </body>