4 <title>Media test: seek test
1</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 // Test that getting the duration from a file works
16 var completed = false;
19 function startTest() {
22 var v = document.getElementById('v');
23 ok(Math.round(v.duration*
1000) ==
3833,
"Check duration of video: " + v.duration);
25 clearTimeout(timeout);
30 timeout = setTimeout(function () {
31 ok(false,
"Test timed out");
35 SimpleTest.waitForExplicitFinish();