Implement Focus UI
[framework/web/webkit-efl.git] / LayoutTests / media / broken-video.html
1 <video controls></video>
2 <p>Test that an invalid video file generates a MEDIA_ERR_SRC_NOT_SUPPORTED error and sets networkState to NETWORK_NO_SOURCE.</p>
3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
5
6 <script>
7     video.src = findMediaFile("video", "content/garbage");
8     waitForEvent("error", function () {
9         testExpected("video.error", "[object MediaError]");
10         testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
11         testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);
12         endTest();
13     });
14 </script>