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