4 <title>Wave Media test: seek test
6</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 onended='return playbackEnded();'
13 onseeking='return seekStarted();'
14 onseeked='return seekEnded();'
>
15 <source type='audio/x-wav' src='r11025_s16_c1.wav'
>
18 <script class=
"testbody" type=
"text/javascript">
19 // Test for a seek, followed by a play before the seek completes, ensure we play at the end of the seek.
20 var startPassed = false;
21 var endPassed = false;
22 var completed = false;
25 function startTest() {
29 var v = document.getElementById('v');
34 function seekStarted() {
38 var v = document.getElementById('v');
43 function seekEnded() {
50 function playbackEnded() {
53 ok(startPassed,
"Got seeking event");
54 ok(endPassed,
"Got seeked event");
60 SimpleTest.waitForExplicitFinish();