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

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

Issue 692993003: Named getter of HTMLAllCollection etc should be nullable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@union-nullable
Patch Set: 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
« no previous file with comments | « LayoutTests/fast/dom/idl-union-type-unittest.html ('k') | Source/core/html/HTMLAllCollection.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dba070eb41ff033bfd76b29bbbae8822186bb098..6db2beff25913c64ffe37d04c21840f7ab90cf5b 100644
--- a/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt
+++ b/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt
@@ -50,6 +50,20 @@ 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"
+
+Tests for nullable method arguments
+PASS unionTypesTest.nodeListOrElementOrNullArg(undefined) is "null or undefined is passed"
+PASS unionTypesTest.nodeListOrElementOrNullArg(null) is "null or undefined is passed"
+PASS unionTypesTest.nodeListOrElementOrNullArg(nodeList) is "nodelist is passed"
+PASS unionTypesTest.nodeListOrElementOrNullArg(element) is "element is passed"
+PASS unionTypesTest.nodeListOrElementOrNullArg(3.14) threw exception TypeError: Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid union member..
+PASS unionTypesTest.nodeListOrElementOrNullArg("foo") threw exception TypeError: Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid union member..
+PASS unionTypesTest.nodeListOrElementOrNullArg({}) threw exception TypeError: Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid union member..
+PASS unionTypesTest.nodeListOrElementOrNullArg([]) threw exception TypeError: Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid union member..
+PASS unionTypesTest.nodeListOrElementArg(undefined) threw exception TypeError: Failed to execute 'nodeListOrElementArg' on 'UnionTypesTest': Not a valid union member..
+PASS unionTypesTest.nodeListOrElementArg(null) threw exception TypeError: Failed to execute 'nodeListOrElementArg' on 'UnionTypesTest': Not a valid union member..
+PASS unionTypesTest.nodeListOrElementArg(nodeList) is "nodelist is passed"
+PASS unionTypesTest.nodeListOrElementArg(element) is "element is passed"
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/dom/idl-union-type-unittest.html ('k') | Source/core/html/HTMLAllCollection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698