blob: 078f905bc87f7c75935d0f594f2ae0623bece90c [file] [log] [blame]
<body>
<p>Test that Audio("url") constructor loads the specified resource.</p>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
var audioFile = findMediaFile("audio", "content/test");
var audio = new Audio(audioFile);
mediaElement = audio;
testExpected("audio instanceof HTMLAudioElement", true);
waitForEvent("loadstart", function () { testExpected("relativeURL(audio.currentSrc)", audioFile); });
waitForEventAndEnd("canplaythrough");
</script>