Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/panScroll-in-iframe.html

Issue 2289213002: Implement Middle Click Autoscroll on all platforms not just Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into panscroll Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script src="./resources/panScroll.js"></script>
5 <script>
6 function start() {
7
8 description('Check pan scroll in iframe');
9 var iframe = $('iframe');
10 var offsetLeft = iframe.offsetLeft;
11 var offsetTop = iframe.offsetTop;
12
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 });
22 }
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698