Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / overflow / rtl-scrollbar-drag-origin.html
blob3ab7646de057bb8447aae0c447a5005e209022e4
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;
13 #content {
14 width: 1000px;
15 height: 1px;
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 mouse 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;
29 if (window.eventSender) {
30 eventSender.dragMode = false;
31 eventSender.mouseMoveTo(250, 195);
32 eventSender.mouseDown();
34 eventSender.mouseMoveTo(100, 195);
35 shouldBe("container.scrollLeft" , "0");
37 eventSender.mouseMoveTo(100, 700);
38 shouldBe("container.scrollLeft" , "350");
40 </script>