WebCore:
[WebKit-https.git] / LayoutTests / media / audio-constructor.html
1 <body>
2 <p>Test that Audio() object loads the resource after src attribute is set and load() is called.</p>
3 <script src=video-test.js></script>
4 <script>
5 var audio = new Audio();
6 media = audio;
7 test("audio instanceof HTMLAudioElement");
8 waitForEventAndTest("begin", "relativeURL(audio.currentSrc)=='content/test.wav'");
9 waitForEventAndEnd("load");
10 audio.src = "content/test.wav";
11 run("audio.load()");
12 </script>