OLD | NEW |
1 This test verifies that navigating to entries created by pushState or replaceSta
te correctly restores scroll position correctly and respects "scrollRestoration"
flag. | 1 This test verifies that navigating to entries created by pushState or replaceSta
te correctly restores scroll position correctly and respects "scrollRestoration"
flag. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 verifying #6 | 6 verifying #6 |
7 PASS history.state.key is "#6" | 7 PASS history.state.key is "#6" |
8 PASS document.body.scrollLeft is 0 | 8 PASS document.scrollingElement.scrollLeft is 0 |
9 PASS document.body.scrollTop is 0 | 9 PASS document.scrollingElement.scrollTop is 0 |
10 verifying #5 | 10 verifying #5 |
11 PASS history.state.key is "#5" | 11 PASS history.state.key is "#5" |
12 PASS document.body.scrollLeft is 0 | 12 PASS document.scrollingElement.scrollLeft is 0 |
13 PASS document.body.scrollTop is 0 | 13 PASS document.scrollingElement.scrollTop is 0 |
14 verifying #4 | 14 verifying #4 |
15 PASS history.state.key is "#4" | 15 PASS history.state.key is "#4" |
16 PASS document.body.scrollLeft is 200 | 16 PASS document.scrollingElement.scrollLeft is 200 |
17 PASS document.body.scrollTop is 400 | 17 PASS document.scrollingElement.scrollTop is 400 |
18 verifying #3 | 18 verifying #3 |
19 PASS history.state.key is "#3" | 19 PASS history.state.key is "#3" |
20 PASS document.body.scrollLeft is 150 | 20 PASS document.scrollingElement.scrollLeft is 150 |
21 PASS document.body.scrollTop is 300 | 21 PASS document.scrollingElement.scrollTop is 300 |
22 verifying #2 | 22 verifying #2 |
23 PASS history.state.key is "#2" | 23 PASS history.state.key is "#2" |
24 PASS document.body.scrollLeft is 100 | 24 PASS document.scrollingElement.scrollLeft is 100 |
25 PASS document.body.scrollTop is 200 | 25 PASS document.scrollingElement.scrollTop is 200 |
26 verifying #1 | 26 verifying #1 |
27 PASS history.state.key is "#1" | 27 PASS history.state.key is "#1" |
28 PASS document.body.scrollLeft is 50 | 28 PASS document.scrollingElement.scrollLeft is 50 |
29 PASS document.body.scrollTop is 100 | 29 PASS document.scrollingElement.scrollTop is 100 |
30 PASS successfullyParsed is true | 30 PASS successfullyParsed is true |
31 | 31 |
32 TEST COMPLETE | 32 TEST COMPLETE |
33 | 33 |
OLD | NEW |