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

Unified Diff: LayoutTests/fast/loader/scroll-position-restoration-for-history-api-expected.txt

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: minor 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-restoration-for-history-api-expected.txt
diff --git a/LayoutTests/fast/loader/scroll-position-restoration-for-history-api-expected.txt b/LayoutTests/fast/loader/scroll-position-restoration-for-history-api-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..be7039fb1a62dbfd9b8988c5b43b580bf2ed770b
--- /dev/null
+++ b/LayoutTests/fast/loader/scroll-position-restoration-for-history-api-expected.txt
@@ -0,0 +1,33 @@
+This test verifies that navigating to entries created by pushState or replaceState correctly restores scroll position correctly and respects "willRestoreScroll" flag.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+verifying #6
+PASS history.state.key is "#6"
+PASS document.body.scrollLeft is 0
+PASS document.body.scrollTop is 0
+verifying #5
+PASS history.state.key is "#5"
+PASS document.body.scrollLeft is 0
+PASS document.body.scrollTop is 0
+verifying #4
+PASS history.state.key is "#4"
+PASS document.body.scrollLeft is 200
+PASS document.body.scrollTop is 400
+verifying #3
+PASS history.state.key is "#3"
+PASS document.body.scrollLeft is 150
+PASS document.body.scrollTop is 300
+verifying #2
+PASS history.state.key is "#2"
+PASS document.body.scrollLeft is 100
+PASS document.body.scrollTop is 200
+verifying #1
+PASS history.state.key is "#1"
+PASS document.body.scrollLeft is 50
+PASS document.body.scrollTop is 100
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698