| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/js-test.js"></script> |
| 3 <style> |
| 4 body { |
| 5 height: 1000px; |
| 6 } |
| 7 #fixed { |
| 8 position:fixed; |
| 9 right: 20px; |
| 10 width: 100px; |
| 11 height: 40px; |
| 12 background-color: #ace; |
| 13 } |
| 14 #text { |
| 15 font: bold 18pt monospace; |
| 16 } |
| 17 </style> |
| 18 <div id="fixed"></div> |
| 19 <div id="text">TEXT</div> |
| 20 <div id="console"></div> |
| 21 <script> |
| 22 |
| 23 var jsTestIsAsync = true; |
| 24 |
| 25 description( |
| 26 "This test verifies that text selection does not prevent smooth " + |
| 27 "scrolls running on the main thread."); |
| 28 |
| 29 eventSender.dragMode = false; |
| 30 |
| 31 // Start a text selection. |
| 32 eventSender.mouseMoveTo(20, 20); |
| 33 eventSender.mouseDown(); |
| 34 eventSender.mouseMoveTo(40, 20); |
| 35 |
| 36 eventSender.mouseScrollBy(0, -1); |
| 37 shouldBecomeEqual("scrollY", "40", finishJSTest); |
| 38 |
| 39 </script> |
| OLD | NEW |