| Index: third_party/WebKit/LayoutTests/media/video-error-does-not-exist.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/video-error-does-not-exist.html b/third_party/WebKit/LayoutTests/media/video-error-does-not-exist.html
|
| index 35015bc502821e9ff273f6b203cbdf9a6d202722..657738277a323b5e9738e17a305d282c750acaf7 100644
|
| --- a/third_party/WebKit/LayoutTests/media/video-error-does-not-exist.html
|
| +++ b/third_party/WebKit/LayoutTests/media/video-error-does-not-exist.html
|
| @@ -1,5 +1,7 @@
|
| <p>Test that the media element is in correct state after load fails.</p>
|
| <video controls></video>
|
| +<!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
|
| + (Please avoid writing new tests using video-test.js) -->
|
| <script src=video-test.js></script>
|
| <script>
|
|
|
| @@ -7,13 +9,13 @@
|
| testExpected("video.error", null);
|
|
|
| waitForEventAndTest("canplaythrough", "false");
|
| -
|
| +
|
| waitForEvent("error", function () {
|
| testExpected("video.error", null, "!=");
|
| testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
|
| -
|
| +
|
| testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);
|
| -
|
| +
|
| testExpected("isNaN(video.duration)", true);
|
| testExpected("video.currentTime", 0);
|
| testExpected("video.buffered.length", 0);
|
| @@ -21,7 +23,7 @@
|
| testExpected("video.buffered.length", 0);
|
| endTest();
|
| });
|
| -
|
| +
|
| video.src = "content/does-not-exist.mpeg";
|
| consoleWrite("");
|
| </script>
|
|
|