<video controls></video> | |
<p>Test that play event does not fire when "src" set with no autoplay attribute.</p> | |
<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('load', function () { setTimeout(testPaused, 500);} ); | |
video.src = "content/test.mp4"; | |
</script> |