antti@apple.com | 4e4658c | 2007-11-29 02:02:11 +0000 | [diff] [blame] | 1 | <video controls></video> |
eric.carlson@apple.com | 656a763 | 2009-03-04 01:06:50 +0000 | [diff] [blame] | 2 | <p>Test that play event does not fire when "src" set with no autoplay attribute.</p> |
mihaip@chromium.org | 9d9ccc1 | 2011-02-24 23:10:46 +0000 | [diff] [blame] | 3 | <script src=media-file.js></script> |
| 4 | <script src=video-test.js></script> |
antti | 0fec715 | 2007-10-31 02:35:53 +0000 | [diff] [blame] | 5 | <script> |
eric.carlson@apple.com | 656a763 | 2009-03-04 01:06:50 +0000 | [diff] [blame] | 6 | 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.com | 137b4da | 2009-10-26 15:27:57 +0000 | [diff] [blame] | 18 | waitForEvent('canplaythrough', function () { setTimeout(testPaused, 500);} ); |
eric.carlson@apple.com | 656a763 | 2009-03-04 01:06:50 +0000 | [diff] [blame] | 19 | |
eric@webkit.org | 5e00a66 | 2009-09-17 22:48:32 +0000 | [diff] [blame] | 20 | video.src = findMediaFile("video", "content/test"); |
antti | 0fec715 | 2007-10-31 02:35:53 +0000 | [diff] [blame] | 21 | </script> |