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

Side by Side Diff: LayoutTests/fast/overflow/rtl-scrollbar-drag-origin.html

Issue 302603009: Fix scrollbar thumb drag cancellation in RTL mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test comment Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/overflow/rtl-scrollbar-drag-origin-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #container {
4 position: absolute;
5 left: 100px;
6 top: 0;
7 width: 300px;
8 height: 200px;
9 direction: rtl;
10 overflow: scroll;
11 }
12
13 #content {
14 width: 1000px;
15 height: 1px;
16 }
17 </style>
18 <div id="container">
19 <div id="content">
20 </div>
21 </div>
22 This test verifies scroll position restores correctly when a thumb drag has been cancelled in RTL mode.<br/>
23 This test is expected to fail on Mac because it doesn't cancel scrolling when mo use cursor is out of a certain range. It is Aura-specific behavior.
24 <script src="../../resources/js-test.js"></script>
25 <script>
26 var container = document.getElementById("container");
27 container.scrollLeft = 350;
28
29 if (window.eventSender) {
30 eventSender.dragMode = false;
31 eventSender.mouseMoveTo(250, 195);
32 eventSender.mouseDown();
33
34 eventSender.mouseMoveTo(100, 195);
35 shouldBe("container.scrollLeft" , "0");
36
37 eventSender.mouseMoveTo(0, 195);
38 shouldBe("container.scrollLeft" , "350");
39 }
40 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/overflow/rtl-scrollbar-drag-origin-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698