Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / panScroll-in-iframe.html
blob0287ffefd25d240ca1e1faffc423fc582f5d3eaa
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script src="./resources/panScroll.js"></script>
5 <script>
6 function start() {
8 description('Check pan scroll in iframe');
9 var iframe = $('iframe');
10 var offsetLeft = iframe.offsetLeft;
11 var offsetTop = iframe.offsetTop;
13 testPanScroll({
14 'clickOrDrag': 'click',
15 'endX': offsetLeft + 5,
16 'endY': offsetTop + 50,
17 'scrollable': iframe.contentDocument.body,
18 'scrolledObject': iframe.contentWindow,
19 'startX': offsetLeft + 5,
20 'startY': offsetTop + 5,
21 });
23 </script>
24 </head>
25 <body onload="start()">
26 <div id="container">
27 <p id="description"></p>
28 <iframe id="iframe" width="640" height="100"></iframe>
29 </div>
30 </body>
31 </html>