2 <p>Test that Audio() object loads the resource after src attribute is set and load() is called.</p>
4 <script src=media-file.js></script>
5 <script src=video-test.js></script>
8 var audio = new Audio();
11 testExpected("audio instanceof HTMLAudioElement", true);
13 var mediaFile = findMediaFile("audio", "content/test");
14 waitForEvent("loadstart", function () { testExpected("relativeURL(audio.currentSrc)", mediaFile); });
16 waitForEventAndEnd("canplaythrough");
18 audio.src = mediaFile;