OLD | NEW |
(Empty) | |
| 1 IDL dictionary unittest |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Test for setting an empty dictionary |
| 7 PASS dict.longMember is undefined. |
| 8 PASS dict.stringMember is "defaultStringValue" |
| 9 PASS dict.booleanOrNullMember is null |
| 10 PASS dict.doubleOrNullMember is undefined. |
| 11 PASS dict.stringSequenceMember is undefined. |
| 12 |
| 13 Test for setting undefined |
| 14 PASS dict.longMember is undefined. |
| 15 PASS dict.stringMember is "defaultStringValue" |
| 16 PASS dict.booleanOrNullMember is null |
| 17 PASS dict.doubleOrNullMember is undefined. |
| 18 PASS dict.stringSequenceMember is undefined. |
| 19 |
| 20 Test for setting valid values |
| 21 PASS dict.longMember is 3 |
| 22 PASS dict.stringMember is "modifiedString" |
| 23 PASS dict.booleanOrNullMember is true |
| 24 PASS dict.doubleOrNullMember is 2.0 |
| 25 PASS dict.stringSequenceMember is ["foo", "bar", "baz"] |
| 26 |
| 27 Test for setting invalid member |
| 28 PASS dict.invalidMember is undefined. |
| 29 |
| 30 PASS successfullyParsed is true |
| 31 |
| 32 TEST COMPLETE |
| 33 |
OLD | NEW |