4 <script src="video-test.js"></script>
6 var startTest = function() {
7 if (!window.eventSender) {
8 logResult(false, "This test requires window.eventSender.");
13 var rect = video.getBoundingClientRect();
14 var x = rect.left + rect.width / 2;
15 var y = rect.top + rect.height / 2;
17 eventSender.mouseMoveTo(x, y);
18 eventSender.mouseDown();
19 eventSender.mouseUp();
21 testExpected("document.activeElement.id", "video", "!=");
26 <body onload="startTest();">
27 <p>This tests that a mouse click event will not cause a media element to gain focus.</p>
28 <video id="video" controls></video>