| Index: LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html
|
| diff --git a/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html b/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html
|
| index 6111ab47518a4483931559d6e75b331f70a4f327..2a016798f33fe99c6e92de916ed7e21a5d35e781 100644
|
| --- a/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html
|
| +++ b/LayoutTests/fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.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.addEventListener("popstate", statePopped);
|
|
|
| </script>
|
| -<body>
|
| +<body onload="runTest();">
|
| <pre>
|
| This test does the following:
|
| -Listens for the popstate event using addEventListener
|
|
|