Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/LayoutTests/media/unsupported-rtsp.html

Issue 2062673002: Convert unsupported* and video-append* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/unsupported-rtsp-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1 <!DOCTYPE html>
2 <video controls></video> 2 <title>Test that QuickTime file with RTSP URL generates a load error.</title>
3 3 <script src="../resources/testharness.js"></script>
4 <p>Test that QuickTime file with RTSP URL generates a load error.<p> 4 <script src="../resources/testharnessreport.js"></script>
5 5 <video></video>
6 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
7 (Please avoid writing new tests using video-test.js) -->
8 <script src=video-test.js></script>
9 <script> 6 <script>
7 async_test(function(t) {
8 var video = document.querySelector("video");
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"; 9 video.src = "rtsp://a2047.v1411b.c1411.g.vq.akamaistream.net/5/2047/1411/2_h 264_650/1a1a1ae454c430950065de4cbb2f94c226950c7ae655b61a48a91475e243acda3dac1948 79adde0f/wwdc_2006_2_650.mov";
fs 2016/06/12 14:04:31 This is... interesting. I guess it could be any l
11 waitForEvent("error", function () { 10 video.onerror = t.step_func_done(function () {
12 testExpected("video.error", null, "!="); 11 assert_equals(video.error.code, MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
13 testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) ; 12 assert_equals(video.networkState, HTMLMediaElement.NETWORK_NO_SOURCE);
14 testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);
15 endTest();
16 }); 13 });
17 </script> 14 });
15 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/unsupported-rtsp-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698