commit-queue@webkit.org | 159cd08 | 2013-05-17 03:14:09 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <script type="text/javascript"> |
| 4 | if (window.testRunner && window.internals) { |
| 5 | testRunner.waitUntilDone(); |
commit-queue@webkit.org | 8168b79 | 2017-06-19 07:41:11 +0000 | [diff] [blame] | 6 | internals.settings.setFrameFlattening("FullyEnabled") |
commit-queue@webkit.org | 159cd08 | 2013-05-17 03:14:09 +0000 | [diff] [blame] | 7 | } |
| 8 | |
| 9 | function runTest() |
| 10 | { |
| 11 | if (window.eventSender && window.testRunner) { |
| 12 | var element = document.getElementById('targetObject'); |
| 13 | var startX = element.offsetLeft + element.offsetWidth / 2; |
| 14 | var startY = element.offsetTop + element.offsetHeight / 2; |
| 15 | eventSender.mouseMoveTo(startX, startY); |
| 16 | eventSender.mouseScrollBy(0, -4); |
ap@apple.com | 8c45cee | 2015-08-21 23:09:54 +0000 | [diff] [blame] | 17 | setTimeout(function() { |
| 18 | testRunner.notifyDone(); |
| 19 | }, 100); |
commit-queue@webkit.org | 159cd08 | 2013-05-17 03:14:09 +0000 | [diff] [blame] | 20 | } |
| 21 | } |
| 22 | </script> |
| 23 | </head> |
| 24 | <body style="margin:0" onload="setTimeout('runTest()', 100);"> |
| 25 | <object id="targetObject" width="160px" height="160px" type="text/html" data="data:text/html, |
| 26 | <html> |
| 27 | <body style='margin:0;'> |
| 28 | <div style='width:160px;height:160px;background-color:red;'></div> |
| 29 | <div id='targetDiv' style='width:160px;height:160px;background-color:green;'></div> |
| 30 | </body> |
| 31 | </html> |
| 32 | "> |
| 33 | </object> |
| 34 | </body> |
| 35 | </html> |