Index: LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
diff --git a/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html b/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
index 67bf15cb0ab7d9bfaf794965a5116b458aee7db2..eb9e3ee58859b5f54920a6e4173c06cecced14f5 100644 |
--- a/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
+++ b/LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html |
@@ -18,34 +18,19 @@ function hashOf(url) |
{ |
return url.substring(url.lastIndexOf('#')); |
} |
- |
+ |
function runFirstStageOfTest() |
-{ |
+{ |
history.replaceState("FirstEntry", null, "#FirstEntry"); |
history.pushState("SecondEntry", null, "#SecondEntry"); |
history.back(); |
} |
-function runSecondStageOfTest() |
-{ |
- alert("Last path component of location is " + lastPathComponent(location.href)); |
- setTimeout("history.back();", 0); |
-} |
- |
-function runThirdStageOfTest() |
-{ |
- alert("Final stage of test loaded"); |
-} |
- |
function runTest() |
{ |
alert("LOADED"); |
if (!sessionStorage.stage) |
runFirstStageOfTest(); |
- else if (sessionStorage.stage == 2) |
- runSecondStageOfTest(); |
- else if (sessionStorage.stage == 3) |
- runThirdStageOfTest(); |
} |
onpopstate = function() |