4 <title>Wave 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" />
11 onloadedmetadata='return startTest();'
12 onseeked='return seekEnded();'
>
13 <source type='audio/x-wav' src='r11025_s16_c1.wav'
>
16 <script class=
"testbody" type=
"text/javascript;version=1.7">
17 // Test for bug identified by Chris Pearce in comment
40 on
19 var v = document.getElementById('v');
21 var completed = false;
24 function startTest() {
28 var seek = function () {
38 interval = setInterval(function() { v.currentTime=seek.next(); },
10);
42 function seekEnded() {
47 ok(true,
"Seek " + seekCount);
49 clearInterval(interval);
56 SimpleTest.waitForExplicitFinish();