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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-error-does-not-exist.html

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
OLDNEW
1 <p>Test that the media element is in correct state after load fails.</p> 1 <p>Test that the media element is in correct state after load fails.</p>
2 <video controls></video> 2 <video controls></video>
3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 3 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
4 (Please avoid writing new tests using video-test.js) --> 4 (Please avoid writing new tests using video-test.js) -->
5 <script src=video-test.js></script> 5 <script src=video-test.js></script>
6 <script> 6 <script>
7 7
8 consoleWrite(""); 8 consoleWrite("");
9 testExpected("video.error", null); 9 testExpected("video.error", null);
10 10
11 waitForEventAndTest("canplaythrough", "false"); 11 waitForEventAndTest("canplaythrough", "false");
12 12
13 waitForEvent("error", function () { 13 waitForEvent("error", function () {
14 testExpected("video.error", null, "!="); 14 testExpected("video.error", null, "!=");
15 testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) ; 15 testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) ;
16 16
17 testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE); 17 testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);
18 18
19 testExpected("isNaN(video.duration)", true); 19 testExpected("isNaN(video.duration)", true);
20 testExpected("video.currentTime", 0); 20 testExpected("video.currentTime", 0);
21 testExpected("video.buffered.length", 0); 21 testExpected("video.buffered.length", 0);
22 testExpected("video.seekable.length", 0); 22 testExpected("video.seekable.length", 0);
23 testExpected("video.buffered.length", 0); 23 testExpected("video.buffered.length", 0);
24 endTest(); 24 endTest();
25 }); 25 });
26 26
27 video.src = "content/does-not-exist.mpeg"; 27 video.src = "content/does-not-exist.mpeg";
28 consoleWrite(""); 28 consoleWrite("");
29 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698