| <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> |