| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
| 3 <style> | 3 <style> |
| 4 #a { | 4 #a { |
| 5 position: absolute; | 5 position: absolute; |
| 6 background-color: #def; | 6 background-color: #def; |
| 7 left: 100px; | 7 left: 100px; |
| 8 top: 100px; | 8 top: 100px; |
| 9 width: 1000px; | 9 width: 1000px; |
| 10 height: 1000px; | 10 height: 1000px; |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 Tests that the scrollbar can be clicked even when it clips absolute-positioned c
ontent. | 13 Tests that the scrollbar can be clicked even when it clips absolute-positioned c
ontent. |
| 14 <div id="a"></div> | 14 <div id="a"></div> |
| 15 <script> | 15 <script> |
| 16 window.jsTestIsAsync = true; |
| 16 | 17 |
| 17 eventSender.mouseMoveTo(790, 500); | 18 function runTest() { |
| 18 eventSender.mouseDown(); | 19 eventSender.mouseMoveTo(790, 500); |
| 19 eventSender.mouseUp(); | 20 eventSender.mouseDown(); |
| 21 eventSender.mouseUp(); |
| 22 shouldBecomeEqual('scrollY > 0', 'true', finishJSTest); |
| 23 } |
| 20 | 24 |
| 21 shouldBeTrue(String(scrollY > 0)); | 25 onload = runTest; |
| 22 | |
| 23 </script> | 26 </script> |
| OLD | NEW |