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

Unified Diff: LayoutTests/fast/loader/scroll-position-restored-on-back.html

Issue 927213004: Accept options in history APIs to allow scroll restoration to be disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 7 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/scroll-position-restored-on-back.html
diff --git a/LayoutTests/fast/loader/scroll-position-restored-on-back.html b/LayoutTests/fast/loader/scroll-position-restored-on-back.html
deleted file mode 100644
index a92d67ef073c851bb9d9bbedbd38f6eafc272ff6..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/loader/scroll-position-restored-on-back.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<html>
-<head>
-<script>
-
-function navigate()
-{
- if (location.hash == "") {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- scrollTo(0,100);
- history.pushState({ }, "", window.location + "#1");
- setTimeout("window.location.href = 'resources/empty-document-goes-back.html'", 0);
- return;
- }
-
- setTimeout(function () {
- var scrollPosition = document.body.scrollTop;
- var result = document.getElementById("result");
- if (scrollPosition == 100)
- result.innerHTML = "Success! The scroll position was restored after navigation."
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
-}
-
-</script>
-</head>
-<body style="width:800px" onpageshow="navigate();">
- <div id="result">Fail. The scroll position was not restored after navigation.</div><br/><br/>
- <div style="width:600; height:1000; background-color:purple;"></div>
-</body>
-</htmL>

Powered by Google App Engine
This is Rietveld 408576698