mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
dd26dee475
--HG-- extra : rebase_source : b9ee2200c86a0c3fa06cdb163a39a183aa313380
30 lines
889 B
HTML
30 lines
889 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Media test: standalone video documents</title>
|
|
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
|
|
<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()">
|
|
|
|
<iframe id="i" src="320x240.ogv"></iframe>
|
|
|
|
<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");
|
|
is(elem.currentSrc.substring(elem.currentSrc.length - 11), "320x240.ogv", "currentSrc");
|
|
is(elem.controls, true, "Controls set");
|
|
is(elem.autoplay, true, "Autoplay set");
|
|
SimpleTest.finish();
|
|
}
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|