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> |