gecko/content/media/test/test_audio2.html
Rich Dougherty ext:(%2C%20Chris%20Pearce%20%3Cchris%40pearce.org.nz%3E) eccf17ee01 Bug 548523 - Replace HTMLMediaElement.autobuffer attribute with 'preload'. r=roc a=blocking2.0
--HG--
rename : content/media/test/test_autobuffer.html => content/media/test/test_preload_attribute.html
rename : content/media/test/test_autobuffer2.html => content/media/test/test_preload_suspend.html
2010-08-20 10:50:37 +12:00

27 lines
819 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<title>Media test: Audio Constructor Test 2</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" />
<script type="text/javascript" src="manifest.js"></script>
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">
var tmpAudio = new Audio();
for (var i = 0; i < gAudioTests.length; ++i) {
var test = gAudioTests[i];
if (!tmpAudio.canPlayType(test.type))
continue;
var a1 = new Audio(test.name);
is(a1.getAttribute("preload"), "auto", "Preload automatically set to auto");
is(a1.src.match("/[^/]+$"), "/" + test.name, "src OK");
}
</script>
</pre>
</body>
</html>