OLD | NEW |
1 IDL dictionary unittest | 1 IDL dictionary unittest |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Test for setting an empty dictionary | 6 Test for setting an empty dictionary |
7 PASS dict.longMember is undefined. | 7 PASS dict.longMember is undefined. |
8 PASS dict.longMemberWithDefault is 42 | 8 PASS dict.longMemberWithDefault is 42 |
9 PASS dict.longOrNullMember is undefined. | 9 PASS dict.longOrNullMember is undefined. |
10 PASS dict.longOrNullMemberWithDefault is null | 10 PASS dict.longOrNullMemberWithDefault is null |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 Test for setting invalid USVString value | 87 Test for setting invalid USVString value |
88 PASS dict.usvStringMember is "_�_�_��_" | 88 PASS dict.usvStringMember is "_�_�_��_" |
89 Test for setting invalid enum value | 89 Test for setting invalid enum value |
90 PASS dictionaryTest.set({enumMember: 'invalid'}) threw exception TypeError: Fail
ed to execute 'set' on 'DictionaryTest': member enumMember ('invalid') is not a
valid enum value.. | 90 PASS dictionaryTest.set({enumMember: 'invalid'}) threw exception TypeError: Fail
ed to execute 'set' on 'DictionaryTest': member enumMember ('invalid') is not a
valid enum value.. |
91 | 91 |
92 Test for setting invalid object value | 92 Test for setting invalid object value |
93 PASS dictionaryTest.set({objectMember: 42}) threw exception TypeError: Failed to
execute 'set' on 'DictionaryTest': member objectMember is not an object.. | 93 PASS dictionaryTest.set({objectMember: 42}) threw exception TypeError: Failed to
execute 'set' on 'DictionaryTest': member objectMember is not an object.. |
94 PASS dictionaryTest.set({objectMember: 'invalid'}) threw exception TypeError: Fa
iled to execute 'set' on 'DictionaryTest': member objectMember is not an object.
. | 94 PASS dictionaryTest.set({objectMember: 'invalid'}) threw exception TypeError: Fa
iled to execute 'set' on 'DictionaryTest': member objectMember is not an object.
. |
95 | 95 |
| 96 Test for setting invalid Element value |
| 97 PASS dictionaryTest.set({elementMember: 42}) threw exception TypeError: Failed t
o execute 'set' on 'DictionaryTest': member elementMember is not of type Element
.. |
| 98 PASS dictionaryTest.set({elementMember: testObject1}) threw exception TypeError:
Failed to execute 'set' on 'DictionaryTest': member elementMember is not of typ
e Element.. |
| 99 PASS dictionaryTest.set({elementMember: []}) threw exception TypeError: Failed t
o execute 'set' on 'DictionaryTest': member elementMember is not of type Element
.. |
| 100 PASS dictionaryTest.set({elementMember: document}) threw exception TypeError: Fa
iled to execute 'set' on 'DictionaryTest': member elementMember is not of type E
lement.. |
| 101 |
96 Test for passing invalid dictionary values | 102 Test for passing invalid dictionary values |
97 PASS dictionaryTest.set(42) threw exception TypeError: Failed to execute 'set' o
n 'DictionaryTest': parameter 1 ('testingDictionary') is not an object.. | 103 PASS dictionaryTest.set(42) threw exception TypeError: Failed to execute 'set' o
n 'DictionaryTest': parameter 1 ('testingDictionary') is not an object.. |
98 PASS dictionaryTest.set('string') threw exception TypeError: Failed to execute '
set' on 'DictionaryTest': parameter 1 ('testingDictionary') is not an object.. | 104 PASS dictionaryTest.set('string') threw exception TypeError: Failed to execute '
set' on 'DictionaryTest': parameter 1 ('testingDictionary') is not an object.. |
99 | 105 |
100 Test for [Clamp] and [EnforceRange] member | 106 Test for [Clamp] and [EnforceRange] member |
101 PASS dict.longMember is -2147483648 | 107 PASS dict.longMember is -2147483648 |
102 PASS dict.longMemberWithClamp is 2147483647 | 108 PASS dict.longMemberWithClamp is 2147483647 |
103 PASS dictionaryTest.set({ longMemberWithEnforceRange: 2147483648 }) threw except
ion TypeError: Failed to execute 'set' on 'DictionaryTest': Value is outside the
'long' value range.. | 109 PASS dictionaryTest.set({ longMemberWithEnforceRange: 2147483648 }) threw except
ion TypeError: Failed to execute 'set' on 'DictionaryTest': Value is outside the
'long' value range.. |
104 | 110 |
105 Test for derived dictionary | 111 Test for derived dictionary |
(...skipping 21 matching lines...) Expand all Loading... |
127 PASS derived.stringMemberWithDefault is "modifiedString" | 133 PASS derived.stringMemberWithDefault is "modifiedString" |
128 PASS derived.derivedStringMember is "modifiedString2" | 134 PASS derived.derivedStringMember is "modifiedString2" |
129 PASS derived.derivedStringMemberWithDefault is "modifiedString3" | 135 PASS derived.derivedStringMemberWithDefault is "modifiedString3" |
130 PASS derived.invalidMember is undefined. | 136 PASS derived.invalidMember is undefined. |
131 | 137 |
132 PASS dictionaryTest.setDerived({objectMember: 42}) threw exception TypeError: Fa
iled to execute 'setDerived' on 'DictionaryTest': member objectMember is not an
object.. | 138 PASS dictionaryTest.setDerived({objectMember: 42}) threw exception TypeError: Fa
iled to execute 'setDerived' on 'DictionaryTest': member objectMember is not an
object.. |
133 PASS successfullyParsed is true | 139 PASS successfullyParsed is true |
134 | 140 |
135 TEST COMPLETE | 141 TEST COMPLETE |
136 | 142 |
OLD | NEW |