1 IDL union types unittests
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS unionTypesTest.doubleOrStringAttribute is 0
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 ""
15 Tests for method arguments
16 PASS unionTypesTest.doubleOrStringArg(3.14) is "double is passed: 3.14"
17 PASS unionTypesTest.doubleOrStringArg("foo") is "string is passed: foo"
18 PASS unionTypesTest.doubleOrStringArg(undefined) is "string is passed: undefined"
19 PASS unionTypesTest.doubleOrStringArg(null) is "string is passed: null"
20 PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]"
21 PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: "
22 PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string"
23 PASS unionTypesTest.doubleOrStringArg() threw exception TypeError: Failed to execute 'doubleOrStringArg' on 'UnionTypesTest': 1 argument required, but only 0 present..
24 PASS successfullyParsed is true