| Index: LayoutTests/fast/loader/stateobjects/replacestate-then-pushstate.html
|
| diff --git a/LayoutTests/fast/loader/stateobjects/replacestate-then-pushstate.html b/LayoutTests/fast/loader/stateobjects/replacestate-then-pushstate.html
|
| index b0dd81e748cc8124198aca60104bcf94b6397da9..fbfa27a6bcc8173d8ffbdbb3c063e8ea4b3e9ebd 100644
|
| --- a/LayoutTests/fast/loader/stateobjects/replacestate-then-pushstate.html
|
| +++ b/LayoutTests/fast/loader/stateobjects/replacestate-then-pushstate.html
|
| @@ -22,18 +22,8 @@ function runTest()
|
| history.back();
|
| }
|
|
|
| -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 - " + event.state + " (type " + typeof event.state + ")");
|
| if (event.state == "OriginalHistoryItem")
|
| history.forward();
|
| @@ -42,7 +32,7 @@ onpopstate = function(event)
|
| }
|
|
|
| </script>
|
| -<body>
|
| +<body onload="runTest();">
|
| <pre>
|
| This test does the following:
|
| -Makes a call to replaceState()
|
|
|