tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / history / history_reload.html
1 <html>
2 <head>
3     <script>
4     var i = 0;
5     function test() {
6         if (window.layoutTestController) {
7             layoutTestController.setCanOpenWindows();
8             layoutTestController.dumpAsText();
9             layoutTestController.waitUntilDone();
10             var button = document.getElementById("button");
11             eventSender.mouseMoveTo(button.offsetParent.offsetLeft + button.offsetLeft + button.offsetWidth / 2, button.offsetParent.offsetTop +  button.offsetTop + button.offsetHeight / 2);
12             eventSender.mouseDown();
13             eventSender.mouseUp();
14         }
15     }
16     function openWindow() {
17         var newWindow = window.open('resources/history_reload_window.html');
18     }
19
20     </script>
21 </head>
22 <body onload="test()">
23     This tests that history.go(0) will force a page reload.<br>
24     <input id="button" type="button" onclick="openWindow()" value="click"></input>
25     <div id="console"></div>
26 </body>
27 </html>