tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / http / tests / history / cross-origin-replace-history-object-child.html
1 <html>
2 <head>
3 <script>
4
5 if (window.layoutTestController) {
6     layoutTestController.dumpAsText();
7     layoutTestController.waitUntilDone();
8 }
9
10 window.onmessage = function(evt)
11 {
12     if (evt.data != "done") {
13         alert("Unexpected message: " + evt.data);
14         layoutTestController.notifyDone();
15         return;
16     }
17
18     alert("Child window's history object after attempt to clear: " + window.frames[0].history);
19     layoutTestController.notifyDone();
20 }
21
22 function setHistoryLength()
23 {
24     alert("Child window's history object before attempt to clear: " + window.frames[0].history);
25     window.frames[0].postMessage("setHistoryLength", "*");
26 }
27
28 </script>
29 </head>
30 <body onload="setHistoryLength();">
31 <iframe id='testFrame' src="http://localhost:8000/history/resources/cross-origin-replaces-history-object-child-iframe.html"></iframe>
32 </body>
33 </html>