Reviewed by Maciej.
[WebKit-https.git] / LayoutTests / media / audio-constructor.html
1 <body>
2 <script src=video-test.js></script>
3 <script>
4 var audio = new Audio();
5 media = audio;
6
7 test("audio instanceof HTMLAudioElement");
8 waitForEventAndTest("load", "relativeURL(audio.currentSrc)=='content/test.wav'");
9 waitForEventAndEnd("play");
10 audio.src = "content/test.wav";
11 audio.play();
12 </script>