| 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". |
| |
| |
| JSON.stringify(internals.layoutViewportRect()) is {"top":0,"right":785,"bottom":585,"left":0,"width":785,"height":585} |
| JSON.stringify(internals.visualViewportRect()) is {"top":0,"right":785,"bottom":585,"left":0,"width":785,"height":585} |
| |
| Scrolled to 475, 525 |
| JSON.stringify(internals.layoutViewportRect()) is {"top":525,"right":1260,"bottom":1110,"left":475,"width":785,"height":585} |
| JSON.stringify(internals.visualViewportRect()) is {"top":525,"right":1260,"bottom":1110,"left":475,"width":785,"height":585} |
| |
| Scrolled to 100, 776 |
| JSON.stringify(internals.layoutViewportRect()) is {"top":776,"right":885,"bottom":1361,"left":100,"width":785,"height":585} |
| JSON.stringify(internals.visualViewportRect()) is {"top":776,"right":885,"bottom":1361,"left":100,"width":785,"height":585} |
| |
| Scrolled to 50, 300 |
| JSON.stringify(internals.layoutViewportRect()) is {"top":300,"right":835,"bottom":885,"left":50,"width":785,"height":585} |
| JSON.stringify(internals.visualViewportRect()) is {"top":300,"right":835,"bottom":885,"left":50,"width":785,"height":585} |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |