4 <title>Wave 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" />
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 seeking works if current time is set before audio is
21 var startPassed = false;
22 var endPassed = false;
23 var completed = false;
25 function startTest() {
29 var v = document.getElementById('v');
35 function seekStarted() {
43 function seekEnded() {
51 function playbackEnded() {
56 ok(startPassed,
"send seeking event");
57 ok(endPassed,
"send seeked event");
62 SimpleTest.waitForExplicitFinish();