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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-setmediakeys.html

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
« no previous file with comments | « no previous file | LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/encrypted-media/encrypted-media-setmediakeys.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys.html b/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys.html
index f33a3b524baf9fabb6bc79993de80841ffa54351..f4d195e929f4ce93da7b44c897933ca187c69463 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-setmediakeys.html
@@ -19,6 +19,9 @@
run('video.setMediaKeys(null)');
testExpected('video.mediaKeys', null);
+ consoleWrite("Try setting mediaKeys to the wrong type of object.");
+ testException('video.setMediaKeys(new Date())', '"TypeError: Failed to execute \'setMediaKeys\' on \'HTMLMediaElement\': parameter 1 is not of type \'MediaKeys\'."');
+
consoleWrite("Create a MediaKeys object and assign it to video.");
run('mediaKeys = new MediaKeys("org.w3.clearkey")');
testExpected('mediaKeys', null, '!=');
« no previous file with comments | « no previous file | LayoutTests/media/encrypted-media/encrypted-media-setmediakeys-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698