blob: 38920ceaa662a47be7e17f57a495ca0135e3081e [file] [log] [blame]
<video controls></video>
<p>Test that play event does not fire when "src" set with no autoplay attribute.</p>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
testExpected("video.paused", true);
waitForEvent('play', function () {
logResult(false, "PLAY fired");
endTest();
} );
function testPaused ()
{
testExpected("video.paused", true);
endTest();
}
waitForEvent('canplaythrough', function () { setTimeout(testPaused, 500);} );
video.src = findMediaFile("video", "content/test");
</script>