Index: LayoutTests/fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html |
diff --git a/LayoutTests/fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html b/LayoutTests/fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html |
index d7605b77cbdea9182a016cba50bd705a1cbdd658..98a429ea6d7c14218a932ad1f1674319780518a6 100644 |
--- a/LayoutTests/fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html |
+++ b/LayoutTests/fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html |
@@ -44,18 +44,8 @@ function lastPathComponent(url) |
return url.split('/').pop(); |
} |
-var beganTest = false; |
- |
onpopstate = function(event) |
{ |
- // The first time popstate fires, it's because the page has finished loading. |
- // Only then can we begin the test. |
- if (!beganTest) { |
- beganTest = true; |
- runTest(); |
- return; |
- } |
- |
log("State popped with event " + event.state + " (type " + typeof event.state + ") and last path component " + lastPathComponent(location.href)); |
if (event.state != "OriginalEntry") |
setTimeout("history.back();", 0); |
@@ -69,7 +59,7 @@ onhashchange = function(event) |
} |
</script> |
-<body> |
+<body onload="runTest();"> |
<pre> |
This test pushes a series of state objects with different URLs and fragment identifiers meant to test the hashChange event as states are popped. |
</pre><br> |