Add new access object callback
[framework/web/webkit-efl.git] / LayoutTests / media / video-no-autoplay.html
1 <video controls></video>
2 <p>Test that play event does not fire when "src" set with no autoplay attribute.</p>
3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
5 <script>
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     }
18     waitForEvent('canplaythrough', function () { setTimeout(testPaused, 500);} );
19
20     video.src = findMediaFile("video", "content/test");
21 </script>