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

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

Issue 590443002: IDL: object type support for IDL dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 3 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/dom/idl-dictionary-unittest.html ('k') | Source/bindings/scripts/v8_dictionary.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt
diff --git a/LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt b/LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt
index 0275ec537705601e4860ea5b045f303d8a824446..a310d6b521e8101a2d54892cb79d3a09f09068a5 100644
--- a/LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt
+++ b/LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt
@@ -19,6 +19,8 @@ PASS dict.elementOrNullMember is undefined.
PASS dict.enumMember is undefined.
PASS dict.enumMemberWithDefault is "foo"
PASS dict.enumOrNullMember is undefined.
+PASS dict.objectMember is undefined.
+PASS dict.objectOrNullMemberWithDefault is null
Test for setting undefined
PASS dict.longMember is undefined.
@@ -33,6 +35,8 @@ PASS dict.stringSequenceMember is undefined.
PASS dict.stringSequenceOrNullMember is undefined.
PASS dict.elementMember is undefined.
PASS dict.elementOrNullMember is undefined.
+PASS dict.objectMember is undefined.
+PASS dict.objectOrNullMemberWithDefault is null
Test for setting valid values
PASS dict.longMember is 1
@@ -50,6 +54,8 @@ PASS dict.elementOrNullMember is undefined.
PASS dict.enumMember is "foo"
PASS dict.enumMemberWithDefault is "bar"
PASS dict.enumOrNullMember is "baz"
+PASS dict.objectMember is testObject1
+PASS dict.objectOrNullMemberWithDefault is testObject2
Test for explicit undefined or null, and missing members
PASS dict.longMember is undefined.
@@ -63,6 +69,10 @@ PASS dict.invalidMember is undefined.
Test for setting invalid enum value
PASS dictionaryTest.set({enumMember: 'invalid'}) threw exception TypeError: Failed to execute 'set' on 'DictionaryTest': member enumMember ('invalid') is not a valid enum value..
+Test for setting invalid object value
+PASS dictionaryTest.set({objectMember: 42}) threw exception TypeError: Failed to execute 'set' on 'DictionaryTest': member objectMember is not an object..
+PASS dictionaryTest.set({objectMember: 'invalid'}) threw exception TypeError: Failed to execute 'set' on 'DictionaryTest': member objectMember is not an object..
+
Test for passing invalid dictionary values
PASS dictionaryTest.set(42) threw exception TypeError: Failed to execute 'set' on 'DictionaryTest': parameter 1 ('testingDictionary') is not an object..
PASS dictionaryTest.set('string') threw exception TypeError: Failed to execute 'set' on 'DictionaryTest': parameter 1 ('testingDictionary') is not an object..
« no previous file with comments | « LayoutTests/fast/dom/idl-dictionary-unittest.html ('k') | Source/bindings/scripts/v8_dictionary.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698