Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / media / controls-right-click-on-timebar.html
blob24ffe1115a5b8365c453dcbc49a8aed3582a0475
1 <html>
2 <head>
3 <title>right click on timebar test</title>
4 <script src=media-file.js></script>
5 <script src=video-test.js></script>
6 <script>
7 if (window.layoutTestController)
8 layoutTestController.dumpAsText();
10 function click()
12 if (window.eventSender) {
13 var x = video.offsetLeft + video.offsetWidth / 2;
14 var y = video.offsetTop + video.offsetHeight - 10;
15 eventSender.mouseMoveTo(x, y);
16 eventSender.contextClick();
18 window.setTimeout("endTest()", 200);
21 function playing()
23 window.setTimeout("click()", 100);
26 function seeked()
28 failTest("Should not seek.");
31 function start()
33 findMediaElement();
34 waitForEvent('playing', playing);
35 waitForEvent('seeked', seeked);
36 run("video.autoplay = true");
37 run("video.src = '" + findMediaFile("video", "content/test") + "'");
39 </script>
40 </head>
42 <body onload="start()">
43 <p>Test that right clicking on the timebar does not cause a seek.</p>
44 <video controls></video>
45 </body>
46 </html>