Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / media / video / test / test_bug461281.html
blob74c6fbb049a5d67cf7078cbd0e517a7fb61ee9a1
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media test: Bug 461281 - Ogg Streams with eof marker</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" />
8 </head>
9 <body>
10 <video id='v'
11 src='bug461281.ogg'
12 onloadedmetadata='return startTest();'
13 onended='return playbackEnded();'></video>
14 <pre id="test">
15 <script class="testbody" type="text/javascript">
16 // Test if the ended event occurs with media without an eos marker
17 var v = document.getElementById('v');
18 var endPassed = false;
19 var completed = false;
21 function startTest() {
22 if (completed)
23 return false;
25 v.play();
26 return false;
29 function playbackEnded() {
30 if (completed)
31 return false
33 completed = true;
34 ok(v.ended, "Checking playback has ended");
35 SimpleTest.finish();
36 return false;
39 SimpleTest.waitForExplicitFinish();
40 </script>
41 </pre>
42 </body>
43 </html>