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

Unified Diff: third_party/WebKit/LayoutTests/fast/loader/scroll-restore-should-happen-during-load-expected.txt

Issue 1561573004: Fix bug where scroll position was being restored after navigation completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore to previous type Created 4 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: third_party/WebKit/LayoutTests/fast/loader/scroll-restore-should-happen-during-load-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/loader/scroll-restore-should-happen-during-load-expected.txt b/third_party/WebKit/LayoutTests/fast/loader/scroll-restore-should-happen-during-load-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..da1bf77a800645bfbd0796cc6de88154f762e4bf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/loader/scroll-restore-should-happen-during-load-expected.txt
@@ -0,0 +1,19 @@
+Test ensures that frame scroll position is only restored during the navigation process but does not occur after navigation is complete for same document navigations.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.scrollingElement.scrollLeft is 0
+PASS document.scrollingElement.scrollTop is 0
+Verify that scroll position restored correctly during navigation.
+PASS document.scrollingElement.scrollLeft is 100
+PASS document.scrollingElement.scrollTop is 100
+PASS document.scrollingElement.scrollLeft is 0
+PASS document.scrollingElement.scrollTop is 0
+Verify that scroll position is not restored again after navigation is complete.
+PASS document.scrollingElement.scrollLeft is 0
+PASS document.scrollingElement.scrollTop is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698