Index: LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html |
diff --git a/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html b/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html |
index 2f606f6c3b195d168839bac7bc35c03ea86accd0..81267c7ca4c6ca40614ea9f64c095393a9ddeb73 100644 |
--- a/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html |
+++ b/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html |
@@ -20,18 +20,8 @@ function runTest() |
history.back(); |
} |
-var beganTest = false; |
- |
function statePopped() |
{ |
- // 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 - " + event.state + " (type " + typeof event.state + ")"); |
if (event.state == null) |
history.forward(); |
@@ -42,7 +32,7 @@ function statePopped() |
window.onpopstate = statePopped; |
</script> |
-<body> |
+<body onload="runTest();"> |
<pre> |
This test does the following: |
-Uses window.onpopstate to add a popstate handler |