blob: 94d4fae2eec0af68a5cc0d7d10ebcdcc19a0eaf9 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<title>video-controls-dragstart</title>
<style>
video { border: 1px solid black; }
</style>
<script src="video-test.js"></script>
<script>
function go() {
video = document.getElementsByTagName('video')[0];
waitForEventAndEnd('drag');
if (window.eventSender) {
eventSender.mouseMoveTo(video.offsetLeft + 10, video.offsetTop + 10);
eventSender.mouseDown();
eventSender.leapForward(200);
eventSender.mouseMoveTo(video.offsetLeft + 100, video.offsetTop + 100);
eventSender.mouseUp();
}
}
</script>
<body onload="go()">
<div>This tests that videos with controls enabled are still draggable. In a browser, start the test by dragging the video outside its controls area.</div>
<video controls draggable="true"></video>
</body>
</html>