blob: f4013a629af584a8cfb6f95934dacdb8dcd2c2dd [file] [log] [blame]
<body>
<p>Test that Audio() object loads the resource after src attribute is set and load() is called.</p>
<script src=video-test.js></script>
<script>
var audio = new Audio();
media = audio;
test("audio instanceof HTMLAudioElement");
waitForEventAndTest("begin", "relativeURL(audio.currentSrc)=='content/test.wav'");
waitForEventAndEnd("load");
audio.src = "content/test.wav";
run("audio.load()");
</script>