| 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 | 6 Tests for attributes |
| 7 PASS unionTypesTest.doubleOrStringAttribute is 0 | 7 PASS unionTypesTest.doubleOrStringAttribute is 0 |
| 8 PASS unionTypesTest.doubleOrStringAttribute is 3.14 | 8 PASS unionTypesTest.doubleOrStringAttribute is 3.14 |
| 9 PASS unionTypesTest.doubleOrStringAttribute is "foo" | 9 PASS unionTypesTest.doubleOrStringAttribute is "foo" |
| 10 PASS unionTypesTest.doubleOrStringAttribute is "undefined" | 10 PASS unionTypesTest.doubleOrStringAttribute is "undefined" |
| 11 PASS unionTypesTest.doubleOrStringAttribute is "null" | 11 PASS unionTypesTest.doubleOrStringAttribute is "null" |
| 12 PASS unionTypesTest.doubleOrStringAttribute is "[object Object]" | 12 PASS unionTypesTest.doubleOrStringAttribute is "[object Object]" |
| 13 PASS unionTypesTest.doubleOrStringAttribute is "" | 13 PASS unionTypesTest.doubleOrStringAttribute is "" |
| 14 | 14 |
| 15 Tests for method arguments | 15 Tests for method arguments |
| 16 PASS unionTypesTest.doubleOrStringArg(3.14) is "double is passed: 3.14" | 16 PASS unionTypesTest.doubleOrStringArg(3.14) is "double is passed: 3.14" |
| 17 PASS unionTypesTest.doubleOrStringArg("foo") is "string is passed: foo" | 17 PASS unionTypesTest.doubleOrStringArg("foo") is "string is passed: foo" |
| 18 PASS unionTypesTest.doubleOrStringArg(undefined) is "string is passed: undefined
" | 18 PASS unionTypesTest.doubleOrStringArg(undefined) is "string is passed: undefined
" |
| 19 PASS unionTypesTest.doubleOrStringArg(null) is "string is passed: null" | 19 PASS unionTypesTest.doubleOrStringArg(null) is "string is passed: null" |
| 20 PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]" | 20 PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]" |
| 21 PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: " | 21 PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: " |
| 22 PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string" | 22 PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string" |
| 23 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.. |
| 24 |
| 25 Tests for method arguments with defaults |
| 26 PASS unionTypesTest.doubleOrStringDefaultDoubleArg() is "double is passed: 3.14" |
| 27 PASS unionTypesTest.doubleOrStringDefaultDoubleArg(undefined) is "double is pass
ed: 3.14" |
| 28 PASS unionTypesTest.doubleOrStringDefaultDoubleArg("foo") is "string is passed:
foo" |
| 29 PASS unionTypesTest.doubleOrStringDefaultStringArg() is "string is passed: foo" |
| 30 PASS unionTypesTest.doubleOrStringDefaultStringArg(undefined) is "string is pass
ed: foo" |
| 31 PASS unionTypesTest.doubleOrStringDefaultStringArg(3.14) is "double is passed: 3
.14" |
| 32 PASS unionTypesTest.doubleOrStringDefaultNullArg() is "null is passed" |
| 33 PASS unionTypesTest.doubleOrStringDefaultNullArg(undefined) is "null is passed" |
| 34 PASS unionTypesTest.doubleOrStringDefaultNullArg(null) is "null is passed" |
| 35 PASS unionTypesTest.doubleOrStringDefaultNullArg(3.14) is "double is passed: 3.1
4" |
| 36 PASS unionTypesTest.doubleOrStringDefaultNullArg("foo") is "string is passed: fo
o" |
| 24 PASS successfullyParsed is true | 37 PASS successfullyParsed is true |
| 25 | 38 |
| 26 TEST COMPLETE | 39 TEST COMPLETE |
| 27 | 40 |
| OLD | NEW |