OLD | NEW |
1 Tests that scrolling to make an element visible successfully scrolls multiple ne
sted scrolling views'. | 1 Tests that scrolling to make an element visible successfully scrolls multiple ne
sted scrolling views. In this example, it's not actually useful to scroll the in
ner container. |
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 5000-pixel box | 6 5000-pixel box |
| 7 Target |
7 5000-pixel box | 8 5000-pixel box |
8 5000-pixel box | |
9 Target | |
10 PASS window.pageYOffset is 0 | 9 PASS window.pageYOffset is 0 |
11 PASS outerContainer.scrollTop is 0 | 10 PASS container.scrollTop is 0 |
12 PASS innerContainer.scrollTop is 0 | 11 PASS target.getBoundingClientRect().top is >= 5000 |
13 PASS target.getBoundingClientRect().top is >= 15000 | |
14 PASS window.innerHeight is >= target.getBoundingClientRect().bottom | 12 PASS window.innerHeight is >= target.getBoundingClientRect().bottom |
15 PASS successfullyParsed is true | 13 PASS successfullyParsed is true |
16 | 14 |
17 TEST COMPLETE | 15 TEST COMPLETE |
18 | 16 |
OLD | NEW |