4 <title>Wave Media test: seek test
8</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 <source type='audio/x-wav' src='r11025_s16_c1.wav'
>
15 <script class=
"testbody" type=
"text/javascript">
16 // If a NaN is passed to currentTime, make sure this is caught
17 // otherwise an infinite loop in the Wave backend occurs.
18 var v = document.getElementById('v');
19 var completed = false;
24 function startTest() {
41 v.currentTime = Math.random;
47 ok(thrown1,
"Setting currentTime to invalid value of NaN");
48 ok(thrown2,
"Setting currentTime to invalid value of -1");
49 ok(thrown3,
"Setting currentTime to invalid value of a function");
54 SimpleTest.waitForExplicitFinish();