3 <title>right click on timebar test
</title>
4 <script src=media-controls.js
></script>
5 <script src=media-file.js
></script>
6 <script src=video-test.js
></script>
9 testRunner
.dumpAsText();
13 if (window
.eventSender
) {
16 seekCoords
= mediaControlsButtonCoordinates(video
, "timeline");
18 failTest(exception
.description
);
21 var x
= seekCoords
[0];
22 var y
= seekCoords
[1];
24 eventSender
.mouseMoveTo(x
, y
);
25 eventSender
.contextClick();
27 window
.setTimeout("endTest()", 200);
32 window
.setTimeout("click()", 100);
37 failTest("Should not seek.");
43 waitForEvent('playing', playing
);
44 waitForEvent('seeked', seeked
);
45 run("video.autoplay = true");
46 disableFullTestDetailsPrinting();
47 runSilently("video.src = '" + findMediaFile("video", "content/test") + "'");
48 enableFullTestDetailsPrinting();
53 <body onload=
"start()">
54 <p>Test that right clicking on the timebar does not cause a seek.
</p>
55 <video controls
></video>