Index: LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt |
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt b/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt |
index 41e836a83ad64a5233b4cc40c03e197e5ad53935..4c28ee2d5978a4210e8a41c4df846de8f68fd2dd 100644 |
--- a/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt |
+++ b/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt |
@@ -7,6 +7,8 @@ EXPECTED (typeof video.setMediaKeys == 'function') OK |
Try setting mediaKeys to null. |
RUN(video.setMediaKeys(null)) |
EXPECTED (video.mediaKeys == 'null') OK |
+Try setting mediaKeys to the wrong type of object. |
+TEST(video.setMediaKeys(new Date())) THROWS("TypeError: Failed to execute 'setMediaKeys' on 'HTMLMediaElement': parameter 1 is not of type 'MediaKeys'.") OK |
Create a MediaKeys object and assign it to video. |
RUN(mediaKeys = new MediaKeys("org.w3.clearkey")) |
EXPECTED (mediaKeys != 'null') OK |