blob: 625cc2948458a03933b3c790c83a527e2cfe9a78 [file] [log] [blame]
<!DOCTYPE html>
<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('loadedmetadata');
waitForEvent('play', function() { endTest(); });
run("mediaElement.src = findMediaFile('audio', 'content/test')");
run("mediaElement.play()");
}
</script>
</head>
<body onload="start()">
<p>Test that a 'play' event is fired when an audio element plays.</p>
</body>
</html>