OLD | NEW |
1 | 1 |
2 <video controls></video> | 2 <video controls></video> |
3 | 3 |
4 <p>Test that QuickTime file with RTSP URL generates a load error.<p> | 4 <p>Test that QuickTime file with RTSP URL generates a load error.<p> |
5 | 5 |
6 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 6 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
7 (Please avoid writing new tests using video-test.js) --> | 7 (Please avoid writing new tests using video-test.js) --> |
8 <script src=video-test.js></script> | 8 <script src=video-test.js></script> |
9 <script> | 9 <script> |
10 video.src = "rtsp://a2047.v1411b.c1411.g.vq.akamaistream.net/5/2047/1411/2_h
264_650/1a1a1ae454c430950065de4cbb2f94c226950c7ae655b61a48a91475e243acda3dac1948
79adde0f/wwdc_2006_2_650.mov"; | 10 video.src = "rtsp://a2047.v1411b.c1411.g.vq.akamaistream.net/5/2047/1411/2_h
264_650/1a1a1ae454c430950065de4cbb2f94c226950c7ae655b61a48a91475e243acda3dac1948
79adde0f/wwdc_2006_2_650.mov"; |
11 waitForEvent("error", function () { | 11 waitForEvent("error", function () { |
12 testExpected("video.error", null, "!="); | 12 testExpected("video.error", null, "!="); |
13 testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED)
; | 13 testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED)
; |
14 testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE); | 14 testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE); |
15 endTest(); | 15 endTest(); |
16 }); | 16 }); |
17 </script> | 17 </script> |
OLD | NEW |