Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / navigation / resources / pushState-onload.html
index 2b968d7..16b019d 100644 (file)
@@ -4,9 +4,11 @@ window.onpopstate = function() {
     parent.addChild();
 };
 
-setTimeout(function() {
-    history.pushState("Test", "", "#test");
-    parent.setupDone();
-}, 0);
+window.onload = function() {
+    setTimeout(function() {
+        history.pushState("Test", "", "#test");
+        parent.sameDocumentSetupDone();
+    }, 0);
+}
 </script>
 </body>