blob: 10b5e85e6b57c4093aa40580f1f6d0669fbd9844 [file] [log] [blame]
This test verifies that navigating to entries created by pushState or replaceState correctly restores scroll position correctly and respects "scrollRestoration" 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.scrollingElement.scrollLeft is 0
PASS document.scrollingElement.scrollTop is 0
verifying #5
PASS history.state.key is "#5"
PASS document.scrollingElement.scrollLeft is 0
PASS document.scrollingElement.scrollTop is 0
verifying #4
PASS history.state.key is "#4"
PASS document.scrollingElement.scrollLeft is 200
PASS document.scrollingElement.scrollTop is 400
verifying #3
PASS history.state.key is "#3"
PASS document.scrollingElement.scrollLeft is 150
PASS document.scrollingElement.scrollTop is 300
verifying #2
PASS history.state.key is "#2"
PASS document.scrollingElement.scrollLeft is 100
PASS document.scrollingElement.scrollTop is 200
verifying #1
PASS history.state.key is "#1"
PASS document.scrollingElement.scrollLeft is 50
PASS document.scrollingElement.scrollTop is 100
PASS successfullyParsed is true
TEST COMPLETE