blob: db6804aaedf4b7cf215b6d56adf09768abe8a79e [file] [log] [blame]
commit-queue@webkit.org159cd082013-05-17 03:14:09 +00001<html>
2 <head>
3 <script type="text/javascript">
4 if (window.testRunner && window.internals) {
5 testRunner.waitUntilDone();
commit-queue@webkit.org8168b792017-06-19 07:41:11 +00006 internals.settings.setFrameFlattening("FullyEnabled")
commit-queue@webkit.org159cd082013-05-17 03:14:09 +00007 }
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.com8c45cee2015-08-21 23:09:54 +000017 setTimeout(function() {
18 testRunner.notifyDone();
19 }, 100);
commit-queue@webkit.org159cd082013-05-17 03:14:09 +000020 }
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>