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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt

Issue 212643002: Use [StrictTypeChecking] for HTMLMediaElement.setMediaKeys (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nullable Created 6 years, 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698