OLD | NEW |
(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> |
OLD | NEW |