blob: a86b7723b0ec6eec35b156d1ec02dc575db64de2 [file] [log] [blame]
<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>