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.doubleOrStringOrStringArrayAttribute is 0 | 7 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is 0 |
8 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is 3.14 | 8 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is 3.14 |
9 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "foo" | 9 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "foo" |
10 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "undefined" | 10 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "undefined" |
11 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "null" | 11 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "null" |
12 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "[object Object]" | 12 PASS unionTypesTest.doubleOrStringOrStringArrayAttribute is "[object Object]" |
13 PASS JSON.stringify(unionTypesTest.doubleOrStringOrStringArrayAttribute) is "[]" | 13 PASS JSON.stringify(unionTypesTest.doubleOrStringOrStringArrayAttribute) is "[]" |
14 PASS JSON.stringify(unionTypesTest.doubleOrStringOrStringArrayAttribute) is "[\"
a\",\"3.14\"]" | 14 PASS JSON.stringify(unionTypesTest.doubleOrStringOrStringArrayAttribute) is "[\"
a\",\"3.14\"]" |
15 | 15 |
16 Tests for method arguments | 16 Tests for method arguments |
17 PASS unionTypesTest.doubleOrStringArg(3.14) is "double is passed: 3.14" | 17 PASS unionTypesTest.doubleOrStringArg(3.14) is "double is passed: 3.14" |
18 PASS unionTypesTest.doubleOrStringArg("foo") is "string is passed: foo" | 18 PASS unionTypesTest.doubleOrStringArg("foo") is "string is passed: foo" |
19 PASS unionTypesTest.doubleOrStringArg(undefined) is "string is passed: undefined
" | 19 PASS unionTypesTest.doubleOrStringArg(undefined) is "string is passed: undefined
" |
20 PASS unionTypesTest.doubleOrStringArg(null) is "string is passed: null" | 20 PASS unionTypesTest.doubleOrStringArg(null) is "string is passed: null" |
21 PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]" | 21 PASS unionTypesTest.doubleOrStringArg({}) is "string is passed: [object Object]" |
22 PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: " | 22 PASS unionTypesTest.doubleOrStringArg([]) is "string is passed: " |
23 PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string" | 23 PASS typeof unionTypesTest.doubleOrStringArg(new Date) is "string" |
24 PASS unionTypesTest.doubleOrStringArg() threw exception TypeError: Failed to exe
cute 'doubleOrStringArg' on 'UnionTypesTest': 1 argument required, but only 0 pr
esent.. | 24 PASS unionTypesTest.doubleOrStringArg() threw exception TypeError: Failed to exe
cute 'doubleOrStringArg' on 'UnionTypesTest': 1 argument required, but only 0 pr
esent.. |
25 | 25 |
26 PASS unionTypesTest.doubleOrInternalEnumArg(3.14) is "double is passed: 3.14" | 26 PASS unionTypesTest.doubleOrInternalEnumArg(3.14) is "double is passed: 3.14" |
27 PASS unionTypesTest.doubleOrInternalEnumArg("foo") is "InternalEnum is passed: f
oo" | 27 PASS unionTypesTest.doubleOrInternalEnumArg("foo") is "InternalEnum is passed: f
oo" |
28 PASS unionTypesTest.doubleOrInternalEnumArg("invalid") threw exception TypeError
: Failed to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': 'invalid' is
not a valid enum value.. | 28 PASS unionTypesTest.doubleOrInternalEnumArg("invalid") threw exception TypeError
: Failed to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': The provided
value 'invalid' is not a valid enum value.. |
29 PASS unionTypesTest.doubleOrInternalEnumArg(null) threw exception TypeError: Fai
led to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': 'null' is not a va
lid enum value.. | 29 PASS unionTypesTest.doubleOrInternalEnumArg(null) threw exception TypeError: Fai
led to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': The provided value
'null' is not a valid enum value.. |
30 PASS unionTypesTest.doubleOrInternalEnumArg({}) threw exception TypeError: Faile
d to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': '[object Object]' is
not a valid enum value.. | 30 PASS unionTypesTest.doubleOrInternalEnumArg({}) threw exception TypeError: Faile
d to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': The provided value '
[object Object]' is not a valid enum value.. |
31 PASS unionTypesTest.doubleOrInternalEnumArg([]) threw exception TypeError: Faile
d to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': '' is not a valid en
um value.. | 31 PASS unionTypesTest.doubleOrInternalEnumArg([]) threw exception TypeError: Faile
d to execute 'doubleOrInternalEnumArg' on 'UnionTypesTest': The provided value '
' is not a valid enum value.. |
32 | 32 |
33 PASS unionTypesTest.doubleOrStringArrayArg([]) is "" | 33 PASS unionTypesTest.doubleOrStringArrayArg([]) is "" |
34 PASS unionTypesTest.doubleOrStringArrayArg([3.14, "foo"]) is "double: 3.14, stri
ng: foo" | 34 PASS unionTypesTest.doubleOrStringArrayArg([3.14, "foo"]) is "double: 3.14, stri
ng: foo" |
35 PASS unionTypesTest.doubleOrStringArrayArg([1, "foo", "bar", 2]) is "double: 1,
string: foo, string: bar, double: 2" | 35 PASS unionTypesTest.doubleOrStringArrayArg([1, "foo", "bar", 2]) is "double: 1,
string: foo, string: bar, double: 2" |
36 PASS unionTypesTest.doubleOrStringArrayArg([null, undefined, {}, []]) is "string
: null, string: undefined, string: [object Object], string: " | 36 PASS unionTypesTest.doubleOrStringArrayArg([null, undefined, {}, []]) is "string
: null, string: undefined, string: [object Object], string: " |
37 PASS unionTypesTest.doubleOrStringArrayArg(null) threw exception TypeError: Fail
ed to execute 'doubleOrStringArrayArg' on 'UnionTypesTest': The 1st argument is
neither an array, nor does it have indexed properties.. | 37 PASS unionTypesTest.doubleOrStringArrayArg(null) threw exception TypeError: Fail
ed to execute 'doubleOrStringArrayArg' on 'UnionTypesTest': The 1st argument is
neither an array, nor does it have indexed properties.. |
38 PASS unionTypesTest.doubleOrStringArrayArg(undefined) threw exception TypeError:
Failed to execute 'doubleOrStringArrayArg' on 'UnionTypesTest': The 1st argumen
t is neither an array, nor does it have indexed properties.. | 38 PASS unionTypesTest.doubleOrStringArrayArg(undefined) threw exception TypeError:
Failed to execute 'doubleOrStringArrayArg' on 'UnionTypesTest': The 1st argumen
t is neither an array, nor does it have indexed properties.. |
39 PASS unionTypesTest.doubleOrStringArrayArg({}) threw exception TypeError: Failed
to execute 'doubleOrStringArrayArg' on 'UnionTypesTest': The 1st argument is ne
ither an array, nor does it have indexed properties.. | 39 PASS unionTypesTest.doubleOrStringArrayArg({}) threw exception TypeError: Failed
to execute 'doubleOrStringArrayArg' on 'UnionTypesTest': The 1st argument is ne
ither an array, nor does it have indexed properties.. |
40 | 40 |
41 PASS unionTypesTest.doubleOrStringSequenceArg([]) is "" | 41 PASS unionTypesTest.doubleOrStringSequenceArg([]) is "" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(true) is "string:
true" | 109 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(true) is "string:
true" |
110 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(null) is "null" | 110 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(null) is "null" |
111 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(undefined) is "nul
l" | 111 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(undefined) is "nul
l" |
112 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg([]) is "sequence:
[]" | 112 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg([]) is "sequence:
[]" |
113 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(["a", 3.14]) is "s
equence: [a, 3.14]" | 113 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(["a", 3.14]) is "s
equence: [a, 3.14]" |
114 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(new Array(3)) is "
sequence: [undefined, undefined, undefined]" | 114 PASS unionTypesTest.doubleOrStringOrStringSequenceNullableArg(new Array(3)) is "
sequence: [undefined, undefined, undefined]" |
115 PASS successfullyParsed is true | 115 PASS successfullyParsed is true |
116 | 116 |
117 TEST COMPLETE | 117 TEST COMPLETE |
118 | 118 |
OLD | NEW |