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" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 PASS unionTypesTest.doubleOrStringDefaultNullArg(undefined) is "null is passed" | 49 PASS unionTypesTest.doubleOrStringDefaultNullArg(undefined) is "null is passed" |
50 PASS unionTypesTest.doubleOrStringDefaultNullArg(null) is "null is passed" | 50 PASS unionTypesTest.doubleOrStringDefaultNullArg(null) is "null is passed" |
51 PASS unionTypesTest.doubleOrStringDefaultNullArg(3.14) is "double is passed: 3.1
4" | 51 PASS unionTypesTest.doubleOrStringDefaultNullArg(3.14) is "double is passed: 3.1
4" |
52 PASS unionTypesTest.doubleOrStringDefaultNullArg("foo") is "string is passed: fo
o" | 52 PASS unionTypesTest.doubleOrStringDefaultNullArg("foo") is "string is passed: fo
o" |
53 | 53 |
54 Tests for nullable method arguments | 54 Tests for nullable method arguments |
55 PASS unionTypesTest.nodeListOrElementOrNullArg(undefined) is "null or undefined
is passed" | 55 PASS unionTypesTest.nodeListOrElementOrNullArg(undefined) is "null or undefined
is passed" |
56 PASS unionTypesTest.nodeListOrElementOrNullArg(null) is "null or undefined is pa
ssed" | 56 PASS unionTypesTest.nodeListOrElementOrNullArg(null) is "null or undefined is pa
ssed" |
57 PASS unionTypesTest.nodeListOrElementOrNullArg(nodeList) is "nodelist is passed" | 57 PASS unionTypesTest.nodeListOrElementOrNullArg(nodeList) is "nodelist is passed" |
58 PASS unionTypesTest.nodeListOrElementOrNullArg(element) is "element is passed" | 58 PASS unionTypesTest.nodeListOrElementOrNullArg(element) is "element is passed" |
59 PASS unionTypesTest.nodeListOrElementOrNullArg(3.14) threw exception TypeError:
Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid
union member.. | 59 PASS unionTypesTest.nodeListOrElementOrNullArg(3.14) threw exception TypeError:
Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': The provided
value is not of type '(NodeList or Element)'. |
60 PASS unionTypesTest.nodeListOrElementOrNullArg("foo") threw exception TypeError:
Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid
union member.. | 60 PASS unionTypesTest.nodeListOrElementOrNullArg("foo") threw exception TypeError:
Failed to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': The provide
d value is not of type '(NodeList or Element)'. |
61 PASS unionTypesTest.nodeListOrElementOrNullArg({}) threw exception TypeError: Fa
iled to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid un
ion member.. | 61 PASS unionTypesTest.nodeListOrElementOrNullArg({}) threw exception TypeError: Fa
iled to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': The provided v
alue is not of type '(NodeList or Element)'. |
62 PASS unionTypesTest.nodeListOrElementOrNullArg([]) threw exception TypeError: Fa
iled to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': Not a valid un
ion member.. | 62 PASS unionTypesTest.nodeListOrElementOrNullArg([]) threw exception TypeError: Fa
iled to execute 'nodeListOrElementOrNullArg' on 'UnionTypesTest': The provided v
alue is not of type '(NodeList or Element)'. |
63 PASS unionTypesTest.nodeListOrElementArg(undefined) threw exception TypeError: F
ailed to execute 'nodeListOrElementArg' on 'UnionTypesTest': Not a valid union m
ember.. | 63 PASS unionTypesTest.nodeListOrElementArg(undefined) threw exception TypeError: F
ailed to execute 'nodeListOrElementArg' on 'UnionTypesTest': The provided value
is not of type '(NodeList or Element)'. |
64 PASS unionTypesTest.nodeListOrElementArg(null) threw exception TypeError: Failed
to execute 'nodeListOrElementArg' on 'UnionTypesTest': Not a valid union member
.. | 64 PASS unionTypesTest.nodeListOrElementArg(null) threw exception TypeError: Failed
to execute 'nodeListOrElementArg' on 'UnionTypesTest': The provided value is no
t of type '(NodeList or Element)'. |
65 PASS unionTypesTest.nodeListOrElementArg(nodeList) is "nodelist is passed" | 65 PASS unionTypesTest.nodeListOrElementArg(nodeList) is "nodelist is passed" |
66 PASS unionTypesTest.nodeListOrElementArg(element) is "element is passed" | 66 PASS unionTypesTest.nodeListOrElementArg(element) is "element is passed" |
67 PASS successfullyParsed is true | 67 PASS successfullyParsed is true |
68 | 68 |
69 TEST COMPLETE | 69 TEST COMPLETE |
70 | 70 |
OLD | NEW |