blob: 02454f8ced06a06f1027913f11f8fbc328619d5b [file] [log] [blame]
<html>
<head>
<title>'play' event</title>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
function start()
{
mediaElement = new Audio();
waitForEvent('error');
waitForEvent('loadedmetadata');
waitForEvent('canplay');
waitForEvent('play');
waitForEvent('playing', function() { endTest(); });
run("mediaElement.src = findMediaFile('audio', 'content/test')");
run("mediaElement.volume = 1");
run("mediaElement.play()");
}
</script>
</head>
<body onload="start()">
<p>Test that a 'play' event listener is triggered when fired by a new audio element.</p>
</body>
</html>