Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / scrollbars / scrollevent-iframe-no-scrolling.html
blob157763457a73f4d89b3e2ef9c71985787aa0a428
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
8 function timeoutFired()
10 document.getElementById('console').innerHTML = "Scrolled by JavaScript scrollTo(): FAILED";
11 if (window.testRunner)
12 window.testRunner.notifyDone();
14 function scrollEventFired()
16 document.getElementById('console').innerHTML = "Scrolled by JavaScript scrollTo(): PASS";
17 if (window.testRunner)
18 window.testRunner.notifyDone();
20 function runTest()
22 window.frames[0].onscroll = scrollEventFired;
23 window.frames[0].scrollTo(0, 50);
24 setTimeout("timeoutFired()", 1000);
26 </script>
27 </head>
28 <body>
29 <div id="console"></div>
30 <iframe onload="runTest();" scrolling="no" style="width:200px;height:200px;" src="resources/scrollable-iframe.html">
31 </body>
32 </html>