Add new access object callback
[framework/web/webkit-efl.git] / LayoutTests / media / video-play-pause-exception.html
1 <html>
2 <body>
3 <video controls></video>
4
5 <p>Video has no src. Test that the playing event is not dispatched.</p>
6
7 <script src=video-test.js></script>
8 <script>
9     waitForEventAndFail('playing');
10
11     waitForEvent("loadstart");
12     waitForEvent("timeupdate");
13     waitForEvent("waiting");
14
15     function onpause()
16     {
17         testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY);
18         endTest();
19         consoleWrite("");
20      }
21
22     waitForEvent("pause", onpause);
23
24     run("video.play()");
25     run("video.pause()");
26 </script>
27 </body>
28 </html>