| <!DOCTYPE html><!-- webkit-test-runner [ enableModernMediaControls=false ] --> |
| <title>Dragging through timebar test</title> |
| <script src=media-controls.js></script> |
| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| if (window.eventSender) { |
| consoleWrite("Mouse dragging."); |
| timelineCoordinate = mediaControlsButtonCoordinates(video, "timeline"); |
| failTest(exception.description); |
| var x = timelineCoordinate[0]; |
| var y = timelineCoordinate[1]; |
| eventSender.dragMode = false; |
| eventSender.mouseMoveTo(x, y - 100); |
| eventSender.mouseMoveTo(x, y); |
| eventSender.mouseMoveTo(x, y + 100); |
| window.setTimeout("finish()", 1000); |
| consoleWrite("No crash. PASS.") |
| waitForEvent('canplaythrough', test); |
| video.src = findMediaFile("video", "content/test"); |
| <p>Test that dragging through the timebar causes a crash.</p> |