<body> | |
<p>Test that Audio("url") constructor loads the specified resource.</p> | |
<script src=video-test.js></script> | |
<script> | |
var audio = new Audio("content/test.wav"); | |
media = audio; | |
test("audio instanceof HTMLAudioElement"); | |
waitForEventAndTest("begin", "relativeURL(audio.currentSrc)=='content/test.wav'"); | |
waitForEventAndEnd("load"); | |
</script> |