2009-05-19 05:18:41 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Media test: Audio Constructor Test 1</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" />
|
2009-07-10 02:03:02 +00:00
|
|
|
<script type="text/javascript" src="manifest.js"></script>
|
2009-05-19 05:18:41 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<pre id="test">
|
|
|
|
<script class="testbody" type="text/javascript">
|
2010-08-27 02:11:46 +00:00
|
|
|
|
|
|
|
var manager = new MediaTestManager;
|
|
|
|
|
|
|
|
function startTest(test, token) {
|
2009-07-10 02:03:02 +00:00
|
|
|
var a1 = new Audio();
|
2009-07-14 14:04:56 +00:00
|
|
|
if (!a1.canPlayType(test.type))
|
2010-08-27 02:11:46 +00:00
|
|
|
return;
|
|
|
|
manager.started(token);
|
|
|
|
|
2010-08-19 22:50:37 +00:00
|
|
|
is(a1.getAttribute("preload"), "auto", "preload:auto automatically set");
|
2009-10-09 11:48:33 +00:00
|
|
|
is(a1.src, "", "Src set?");
|
2010-08-27 02:11:46 +00:00
|
|
|
a1 = null;
|
|
|
|
manager.finished(token);
|
2009-07-10 02:03:02 +00:00
|
|
|
}
|
2010-08-27 02:11:46 +00:00
|
|
|
|
|
|
|
manager.runTests(gAudioTests, startTest);
|
|
|
|
|
2009-05-19 05:18:41 +00:00
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|