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

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

Issue 2660003003: Add MediaError.message (Closed)
Patch Set: Address dalecurtis@'s comment: undef STRINGIFY_STATUS_CASE Created 3 years, 8 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 85e7e7040617856de6a6d2d261dcad10fe0318d9..51bcec069d9090e12d00368d6a45791d18b1467f 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
@@ -14,6 +14,9 @@ async_test(function(t) {
assert_not_equals(video.error, null);
assert_equals(video.error.code, MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
+ // Actual message can vary greatly, so we only verify the attribute's type.
+ assert_equals(typeof video.error.message, 'string', 'MediaError.message type');
+
assert_equals(video.networkState, HTMLMediaElement.NETWORK_NO_SOURCE);
assert_true(isNaN(video.duration));
@@ -25,4 +28,4 @@ async_test(function(t) {
video.src = "content/does-not-exist.mpeg";
});
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698