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

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

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698