Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / media / video / test / test_standalone.html
blob905a8136d54ac42d83fb72be40f6d9574fce0d0e
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Media test: standalone video documents</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 onload="doTest()">
11 <iframe id="i" src="320x240.ogg"></iframe>
13 <pre id="test">
14 <script class="testbody" type="text/javascript">
15 SimpleTest.waitForExplicitFinish();
17 function doTest()
19 var elem = document.getElementById("i").contentDocument.body.firstChild;
20 is(elem.tagName.toLowerCase(), "video", "Is video element");
21 is(elem.currentSrc.substring(elem.currentSrc.length - 11), "320x240.ogg", "currentSrc");
22 is(elem.controls, true, "Controls set");
23 is(elem.autoplay, true, "Autoplay set");
24 SimpleTest.finish();
26 </script>
27 </pre>
28 </body>
29 </html>