21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
This test scrolls the page and checks that the layout and visual viewports respond as expected.
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
Scrolled to -123, -234
|
|
JSON.stringify(layoutViewport) is {"x":0,"y":0,"width":785,"height":585,"top":0,"right":785,"bottom":585,"left":0}
|
|
JSON.stringify(visualViewport) is {"x":-123,"y":-234,"width":785,"height":533,"top":-234,"right":662,"bottom":299,"left":-123}
|
|
|
|
Scrolled to 475, 525
|
|
JSON.stringify(layoutViewport) is {"x":475,"y":473,"width":785,"height":585,"top":473,"right":1260,"bottom":1058,"left":475}
|
|
JSON.stringify(visualViewport) is {"x":475,"y":473,"width":785,"height":585,"top":473,"right":1260,"bottom":1058,"left":475}
|
|
|
|
Scrolled to 1800, 1700
|
|
JSON.stringify(layoutViewport) is {"x":1223,"y":1648,"width":785,"height":585,"top":1648,"right":2008,"bottom":2233,"left":1223}
|
|
JSON.stringify(visualViewport) is {"x":1800,"y":1648,"width":785,"height":585,"top":1648,"right":2585,"bottom":2233,"left":1800}
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|