OLD | NEW |
1 This tests the constructor for the CustomEvent DOM class. | 1 This tests the constructor for the CustomEvent DOM class. |
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 PASS new CustomEvent('eventType').bubbles is false | 6 PASS new CustomEvent('eventType').bubbles is false |
7 PASS new CustomEvent('eventType').cancelable is false | 7 PASS new CustomEvent('eventType').cancelable is false |
8 PASS new CustomEvent('eventType').detail is null | 8 PASS new CustomEvent('eventType').detail is null |
9 PASS new CustomEvent('eventType', { bubbles: true, cancelable: true }).bubbles i
s true | 9 PASS new CustomEvent('eventType', { bubbles: true, cancelable: true }).bubbles i
s true |
10 PASS new CustomEvent('eventType', { bubbles: true, cancelable: true }).cancelabl
e is true | 10 PASS new CustomEvent('eventType', { bubbles: true, cancelable: true }).cancelabl
e is true |
11 PASS new CustomEvent('eventType', { bubbles: true, cancelable: true }).detail is
null | 11 PASS new CustomEvent('eventType', { bubbles: true, cancelable: true }).detail is
null |
12 PASS new CustomEvent('eventType', { detail: 10 }).detail is 10 | 12 PASS new CustomEvent('eventType', { detail: 10 }).detail is 10 |
13 PASS new CustomEvent('eventType', { detail: 'string' }).detail is 'string' | 13 PASS new CustomEvent('eventType', { detail: 'string' }).detail is 'string' |
14 PASS new CustomEvent('eventType', { detail: detailObject }).detail is detailObje
ct | 14 PASS new CustomEvent('eventType', { detail: detailObject }).detail is detailObje
ct |
15 PASS new CustomEvent('eventType', { detail: document }).detail is document | 15 PASS new CustomEvent('eventType', { detail: document }).detail is document |
16 PASS new CustomEvent('eventType', { detail: undefined }).detail is undefined | 16 PASS new CustomEvent('eventType', { detail: undefined }).detail is null |
17 PASS new CustomEvent('eventType', { detail: null }).detail is null | 17 PASS new CustomEvent('eventType', { detail: null }).detail is null |
18 PASS new CustomEvent('eventType', { get detail() { return true; } }).detail is t
rue | 18 PASS new CustomEvent('eventType', { get detail() { return true; } }).detail is t
rue |
19 PASS new CustomEvent('eventType', { get detail() { throw 'Custom Error'; } }) th
rew exception Custom Error. | 19 PASS new CustomEvent('eventType', { get detail() { throw 'Custom Error'; } }) th
rew exception Custom Error. |
20 PASS successfullyParsed is true | 20 PASS successfullyParsed is true |
21 | 21 |
22 TEST COMPLETE | 22 TEST COMPLETE |
23 | 23 |
OLD | NEW |