Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: LayoutTests/fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html

Issue 148453014: Clean up and deflake history navigation test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased and adjusted TestExpectations Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698