| <!DOCTYPE html> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../../resources/gesture-util.js"></script> |
| <script src="../../resources/compositor-controls.js"></script> |
| <script src="./resources/middleClickAutoscroll.js"></script> |
| <script> |
| function start() { |
| var iframe = $('iframe'); |
| var offsetLeft = iframe.offsetLeft; |
| var offsetTop = iframe.offsetTop; |
| |
| testSetUp({ |
| 'clickOrDrag': 'click', |
| 'endX': offsetLeft + 5, |
| 'endY': offsetTop + 50, |
| 'scrollable': iframe.contentDocument.body, |
| 'scrolledObject': iframe.contentWindow.document.scrollingElement, |
| 'startX': offsetLeft + 5, |
| 'startY': offsetTop + 5, |
| }); |
| } |
| </script> |
| |
| <body onload="start()"> |
| <div id="container"> |
| <p id="description"></p> |
| <iframe id="iframe" width="640" height="100"></iframe> |
| </div> |
| </body> |