OLD | NEW |
1 IDL union types unittests | 1 IDL union types unittests |
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 Tests for attributes |
| 7 PASS unionTypesTest.doubleOrStringAttribute is null |
| 8 PASS unionTypesTest.doubleOrStringAttribute is 3.14 |
| 9 PASS unionTypesTest.doubleOrStringAttribute is "foo" |
| 10 PASS unionTypesTest.doubleOrStringAttribute is "undefined" |
| 11 PASS unionTypesTest.doubleOrStringAttribute is "null" |
| 12 PASS unionTypesTest.doubleOrStringAttribute is "[object Object]" |
| 13 PASS unionTypesTest.doubleOrStringAttribute is "" |
| 14 |
6 Tests for method arguments | 15 Tests for method arguments |
7 PASS unionTypesTest.doubleOrStringArg(3.14) is "double is passed: 3.14" | 16 PASS unionTypesTest.doubleOrStringArg(3.14) is "double is passed: 3.14" |
8 PASS unionTypesTest.doubleOrStringArg("foo") is "string is passed: foo" | 17 PASS unionTypesTest.doubleOrStringArg("foo") is "string is passed: foo" |
9 PASS unionTypesTest.doubleOrStringArg(undefined) is "string is passed: undefined
" | 18 PASS unionTypesTest.doubleOrStringArg(undefined) is "string is passed: undefined
" |
10 PASS unionTypesTest.doubleOrStringArg(null) is "string is passed: null" | 19 PASS unionTypesTest.doubleOrStringArg(null) is "string is passed: null" |
11 PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]" | 20 PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]" |
12 PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: " | 21 PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: " |
13 PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string" | 22 PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string" |
14 PASS unionTypesTest.doubleOrStringArg() threw exception TypeError: Failed to exe
cute 'doubleOrStringArg' on 'UnionTypesTest': 1 argument required, but only 0 pr
esent.. | 23 PASS unionTypesTest.doubleOrStringArg() threw exception TypeError: Failed to exe
cute 'doubleOrStringArg' on 'UnionTypesTest': 1 argument required, but only 0 pr
esent.. |
15 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
16 | 25 |
17 TEST COMPLETE | 26 TEST COMPLETE |
18 | 27 |
OLD | NEW |