Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / media / audio-play-event.html
blob48f8e6e0d63b77622ba63d705116422a67bb4b10
1 <html>
2 <head>
3 <title>'play' event</title>
4 <script src=video-test.js></script>
6 <script>
7 function start()
9 mediaElement = new Audio();
10 waitForEvent('error');
11 waitForEvent('loadedmetadata');
12 waitForEvent('canplay');
13 waitForEvent('canplaythrough');
14 waitForEvent('play');
15 waitForEvent('playing', function() { endTest(); });
16 run("mediaElement.src = 'content/silence.mpg'");
17 run("mediaElement.volume = 1");
18 run("mediaElement.play()");
20 </script>
21 </head>
23 <body onload="start()">
24 <p>Test that a 'play' event listener is triggered when fired by a new audio element.</p>
25 </body>
26 </html>