4 <title>Media test: seek test
7</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 onseeked='return seekEnded();'
></video>
15 <script class=
"testbody" type=
"text/javascript">
16 // Test for bug identified by Chris Pearce in comment
40 on
18 var v = document.getElementById('v');
20 var completed = false;
23 function startTest() {
27 interval = setInterval(function() { v.currentTime=Math.random()*
3; },
10);
31 function seekEnded() {
36 ok(true,
"Seek " + seekCount);
38 clearInterval(interval);
45 SimpleTest.waitForExplicitFinish();