OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/js-test.js"></script> |
| 3 <p>Start selection on video with controls</p> |
| 4 <video controls></video> |
| 5 <span>Some text here</span> |
| 6 <script> |
| 7 var video = document.querySelector('video'); |
| 8 var span = document.querySelector('span'); |
| 9 if (window.eventSender) { |
| 10 eventSender.mouseMoveTo(video.offsetLeft + video.offsetWidth / 2, video.
offsetTop + video.offsetHeight / 2); |
| 11 eventSender.mouseDown(); |
| 12 eventSender.mouseMoveTo(span.offsetLeft + span.offsetWidth / 2, span.off
setTop + span.offsetHeight / 2); |
| 13 eventSender.mouseUp(); |
| 14 } |
| 15 shouldBe('document.getSelection().rangeCount', '0'); |
| 16 </script> |
OLD | NEW |