2008-10-29 22:20:08 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Media test: standalone video documents</title>
|
2009-05-06 13:46:04 -07:00
|
|
|
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
2008-10-29 22:20:08 -07:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
|
|
</head>
|
|
|
|
<body onload="doTest()">
|
|
|
|
|
2009-01-16 01:07:26 -08:00
|
|
|
<iframe id="i" src="320x240.ogv"></iframe>
|
2008-10-29 22:20:08 -07:00
|
|
|
|
|
|
|
<pre id="test">
|
|
|
|
<script class="testbody" type="text/javascript">
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
|
|
|
|
function doTest()
|
|
|
|
{
|
|
|
|
var elem = document.getElementById("i").contentDocument.body.firstChild;
|
|
|
|
is(elem.tagName.toLowerCase(), "video", "Is video element");
|
2009-01-16 01:07:26 -08:00
|
|
|
is(elem.currentSrc.substring(elem.currentSrc.length - 11), "320x240.ogv", "currentSrc");
|
2008-10-29 22:20:08 -07:00
|
|
|
is(elem.controls, true, "Controls set");
|
|
|
|
is(elem.autoplay, true, "Autoplay set");
|
|
|
|
SimpleTest.finish();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|