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

Unified Diff: LayoutTests/fast/dom/idl-union-type-unittest-expected.txt

Issue 713683003: IDL: Support optional union type arguments with default values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add unit tests Created 6 years, 1 month 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/fast/dom/idl-union-type-unittest-expected.txt
diff --git a/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt b/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt
index 4e9fded12655bff20388e224736a581de61bbee4..829d38013efb9c4e25ff2f2be0301158e76ef810 100644
--- a/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt
+++ b/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt
@@ -21,6 +21,19 @@ PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]"
PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: "
PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string"
PASS unionTypesTest.doubleOrStringArg() threw exception TypeError: Failed to execute 'doubleOrStringArg' on 'UnionTypesTest': 1 argument required, but only 0 present..
+
+Tests for method arguments with defaults
+PASS unionTypesTest.doubleOrStringDefaultDoubleArg() is "double is passed: 3.14"
+PASS unionTypesTest.doubleOrStringDefaultDoubleArg(undefined) is "double is passed: 3.14"
+PASS unionTypesTest.doubleOrStringDefaultDoubleArg("foo") is "string is passed: foo"
+PASS unionTypesTest.doubleOrStringDefaultStringArg() is "string is passed: foo"
+PASS unionTypesTest.doubleOrStringDefaultStringArg(undefined) is "string is passed: foo"
+PASS unionTypesTest.doubleOrStringDefaultStringArg(3.14) is "double is passed: 3.14"
+PASS unionTypesTest.doubleOrStringDefaultNullArg() is "null is passed"
+PASS unionTypesTest.doubleOrStringDefaultNullArg(undefined) is "null is passed"
+PASS unionTypesTest.doubleOrStringDefaultNullArg(null) is "null is passed"
+PASS unionTypesTest.doubleOrStringDefaultNullArg(3.14) is "double is passed: 3.14"
+PASS unionTypesTest.doubleOrStringDefaultNullArg("foo") is "string is passed: foo"
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698