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

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

Issue 373043004: IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 5 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 | « LayoutTests/fast/workers/shared-worker-name-expected.txt ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/encrypted-media/encrypted-media-istypesupported.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-istypesupported.html b/LayoutTests/media/encrypted-media/encrypted-media-istypesupported.html
index 2bc8c504512f2f0d11bf0bf13b18a8ee429efc2e..12d149860bc66401b02c2e1dd2e5b1ee2973698f 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-istypesupported.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-istypesupported.html
@@ -21,6 +21,14 @@
assert_true(type.length == 1 || type.length == 2);
assert_equals(MediaKeys.isTypeSupported.apply(
this, type), expectation, 'isTypeSupported');
+ if (type.length == 1) {
+ // Calling with undefined as the second argument
+ // should behave same as calling with only one
+ // argument.
+ type.push(undefined);
+ assert_equals(MediaKeys.isTypeSupported.apply(
+ this, type), expectation, 'isTypeSupported');
+ }
}, description + ": '" + type.join("', '") + "'",
{ timeout: 60000 });
}
« no previous file with comments | « LayoutTests/fast/workers/shared-worker-name-expected.txt ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698