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" />
9 <body onload=
"doTest()">
11 <iframe id=
"i" src=
"320x240.ogg"></iframe>
14 <script class=
"testbody" type=
"text/javascript">
15 SimpleTest.waitForExplicitFinish();
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");