| <body onload="testScroll()"> |
| <div style="width: 256px; height: 2096px; background-color: blue"></div> <!-- Dummy content to help make the page scrollable vertically. --> |
| <video src="non-existent.mov" style="width: 256px; height: 256px; background-color: yellow"> |
| <track src="non-existent.vtt" kind="captions"></track> |
| <div id="result">FAILED: Test did not run.</div> |
| testRunner.waitUntilDone(); |
| var result = document.getElementById("result"); |
| result.innerHTML += (document.body.scrollTop <= 0)? `PASS`: `FAILED: ${document.body.scrollTop} > 0, the page scrolled automatically.`; |