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

Side by Side Diff: LayoutTests/platform/chromium/fast/events/rtl-scrollbar.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body style="margin:0">
7 <div id="overflow" dir="rtl" style="border:2px solid black;overflow:auto;height: 400px;width:400px; position:absolute;">
8 <div style="background-color:red;height:720px"></div>
9 <div style="background-color:green;height:1600px"></div>
10 </div>
11
12 <script>
13 description('Test that we can scroll down an RTL element with its left-side scro llbar.');
14
15 var scrollTop = document.getElementById('overflow').scrollTop;
16
17 if (window.testRunner)
18 testRunner.waitUntilDone();
19
20 if (window.eventSender) {
21 var node = document.getElementById('overflow');
22 eventSender.mouseMoveTo(node.offsetLeft + 5, node.offsetTop + node.offsetHei ght - 50);
23 eventSender.mouseDown();
24 eventSender.mouseUp();
25 setTimeout(finished, 0);
26 }
27
28 function finished()
29 {
30 shouldBeTrue('document.getElementById(\'overflow\').scrollTop > scrollTop');
31 window.testRunner.notifyDone();
32 }
33
34 var successfullyParsed = true;
35 </script>
36 <script src="../../../../fast/js/resources/js-test-post.js"></script>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698