4 <title>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" />
12 onloadedmetadata='return startTest();'
></video>
14 <script class=
"testbody" type=
"text/javascript">
15 // If a NaN is passed to currentTime, make sure this is caught
16 // otherwise an infinite loop in the Ogg backend occurs.
17 var v = document.getElementById('v');
18 var completed = false;
23 function startTest() {
40 v.currentTime = Math.random;
46 ok(thrown1,
"Setting currentTime to invalid value of NaN");
47 ok(thrown2,
"Setting currentTime to invalid value of -1");
48 ok(thrown3,
"Setting currentTime to invalid value of a function");
53 SimpleTest.waitForExplicitFinish();