4 <title>Media test: seek test
3</title>
5 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
6 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 onloadedmetadata='return startTest();'
13 onended='return playbackEnded();'
14 onseeking='return seekStarted();'
15 onseeked='return seekEnded();'
></video>
17 <script class=
"testbody" type=
"text/javascript">
18 // Test seeking works if current time is set before video is
20 var startPassed = false;
21 var endPassed = false;
22 var completed = false;
24 function startTest() {
28 var v = document.getElementById('v');
34 function seekStarted() {
42 function seekEnded() {
50 function playbackEnded() {
55 ok(startPassed,
"send seeking event");
56 ok(endPassed,
"send seeked event");
61 SimpleTest.waitForExplicitFinish();