blob: 38920ceaa662a47be7e17f57a495ca0135e3081e [file] [log] [blame]
antti@apple.com4e4658c2007-11-29 02:02:11 +00001<video controls></video>
eric.carlson@apple.com656a7632009-03-04 01:06:50 +00002<p>Test that play event does not fire when "src" set with no autoplay attribute.</p>
mihaip@chromium.org9d9ccc12011-02-24 23:10:46 +00003<script src=media-file.js></script>
4<script src=video-test.js></script>
antti0fec7152007-10-31 02:35:53 +00005<script>
eric.carlson@apple.com656a7632009-03-04 01:06:50 +00006 testExpected("video.paused", true);
7
8 waitForEvent('play', function () {
9 logResult(false, "PLAY fired");
10 endTest();
11 } );
12
13 function testPaused ()
14 {
15 testExpected("video.paused", true);
16 endTest();
17 }
eric.carlson@apple.com137b4da2009-10-26 15:27:57 +000018 waitForEvent('canplaythrough', function () { setTimeout(testPaused, 500);} );
eric.carlson@apple.com656a7632009-03-04 01:06:50 +000019
eric@webkit.org5e00a662009-09-17 22:48:32 +000020 video.src = findMediaFile("video", "content/test");
antti0fec7152007-10-31 02:35:53 +000021</script>