WebCore:
[WebKit-https.git] / LayoutTests / media / audio-constructor.html
index 0ea531e..f4013a6 100644 (file)
@@ -1,12 +1,12 @@
 <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("load", "relativeURL(audio.currentSrc)=='content/test.wav'");
-waitForEventAndEnd("play");
+waitForEventAndTest("begin", "relativeURL(audio.currentSrc)=='content/test.wav'");
+waitForEventAndEnd("load");
 audio.src = "content/test.wav";
-audio.play();
+run("audio.load()");
 </script>