Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / broken-video.html
blob331c8ae85039fbbca52769a75d28313cc3fb6f31
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>
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>