| OLD | NEW |
| 1 This tests the constructors for all the event DOM classes that have them. | 1 This tests the constructors for all the event DOM classes that have them. |
| 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 Event('eventType')).bubbles is false | 6 PASS (new Event('eventType')).bubbles is false |
| 7 PASS (new Event('eventType')).cancelable is false | 7 PASS (new Event('eventType')).cancelable is false |
| 8 PASS (new Event('eventType', { bubbles: true, cancelable: true })).bubbles is tr
ue | 8 PASS (new Event('eventType', { bubbles: true, cancelable: true })).bubbles is tr
ue |
| 9 PASS (new Event('eventType', { bubbles: true, cancelable: true })).cancelable is
true | 9 PASS (new Event('eventType', { bubbles: true, cancelable: true })).cancelable is
true |
| 10 PASS (new Event('eventType', { bubbles: true, cancelable: false })).bubbles is t
rue | 10 PASS (new Event('eventType', { bubbles: true, cancelable: false })).bubbles is t
rue |
| 11 PASS (new Event('eventType', { bubbles: true, cancelable: false })).cancelable i
s false | 11 PASS (new Event('eventType', { bubbles: true, cancelable: false })).cancelable i
s false |
| 12 PASS (new Event('eventType', { bubbles: true, cancelable: undefined })).bubbles
is true | 12 PASS (new Event('eventType', { bubbles: true, cancelable: undefined })).bubbles
is true |
| 13 PASS (new Event('eventType', { bubbles: true, cancelable: undefined })).cancelab
le is false | 13 PASS (new Event('eventType', { bubbles: true, cancelable: undefined })).cancelab
le is false |
| 14 PASS (new Event('eventType', { bubbles: true, cancelable: 0 })).bubbles is true | 14 PASS (new Event('eventType', { bubbles: true, cancelable: 0 })).bubbles is true |
| 15 PASS (new Event('eventType', { bubbles: true, cancelable: 0 })).cancelable is fa
lse | 15 PASS (new Event('eventType', { bubbles: true, cancelable: 0 })).cancelable is fa
lse |
| 16 PASS (new Event('eventType', { bubbles: true })).bubbles is true | 16 PASS (new Event('eventType', { bubbles: true })).bubbles is true |
| 17 PASS (new Event('eventType', { bubbles: true })).cancelable is false | 17 PASS (new Event('eventType', { bubbles: true })).cancelable is false |
| 18 PASS (new Event('eventType', { })).bubbles is false | 18 PASS (new Event('eventType', { })).bubbles is false |
| 19 PASS (new Event('eventType', { })).cancelable is false | 19 PASS (new Event('eventType', { })).cancelable is false |
| 20 PASS (new Event('eventType', null)).bubbles is false | 20 PASS (new Event('eventType', null)).bubbles is false |
| 21 PASS (new Event('eventType', null)).cancelable is false | 21 PASS (new Event('eventType', null)).cancelable is false |
| 22 PASS (new Event('eventType', undefined)).bubbles is false | 22 PASS (new Event('eventType', undefined)).bubbles is false |
| 23 PASS (new Event('eventType', undefined)).cancelable is false | 23 PASS (new Event('eventType', undefined)).cancelable is false |
| 24 PASS (new Event('eventType', 0)).bubbles is false | 24 PASS new Event('eventType', 0) threw exception TypeError: Failed to construct 'E
vent': parameter 2 ('eventInitDict') is not an object.. |
| 25 PASS (new Event('eventType', 0)).cancelable is false | |
| 26 PASS (new Event('eventType', window)).bubbles is false | 25 PASS (new Event('eventType', window)).bubbles is false |
| 27 PASS (new Event('eventType', window)).cancelable is false | 26 PASS (new Event('eventType', window)).cancelable is false |
| 28 PASS (new Event('eventType', window)).bubbles is true | 27 PASS (new Event('eventType', window)).bubbles is true |
| 29 PASS (new Event('eventType', window)).cancelable is false | 28 PASS (new Event('eventType', window)).cancelable is false |
| 30 PASS (new Event('eventType', document)).bubbles is true | 29 PASS (new Event('eventType', document)).bubbles is true |
| 31 PASS (new Event('eventType', document)).cancelable is false | 30 PASS (new Event('eventType', document)).cancelable is false |
| 32 PASS (new Event('eventType', constructible)).bubbles is true | 31 PASS (new Event('eventType', constructible)).bubbles is true |
| 33 PASS (new Event('eventType', constructible)).cancelable is false | 32 PASS (new Event('eventType', constructible)).cancelable is false |
| 34 PASS (new Event('eventType', { bubbles: true, cancelable: true, other: true })).
bubbles is true | 33 PASS (new Event('eventType', { bubbles: true, cancelable: true, other: true })).
bubbles is true |
| 35 PASS (new Event('eventType', { bubbles: true, cancelable: true, other: true })).
cancelable is true | 34 PASS (new Event('eventType', { bubbles: true, cancelable: true, other: true })).
cancelable is true |
| 36 PASS (new Event('eventType', { bubbles: true, get cancelable() { return true; }
})).bubbles is true | 35 PASS (new Event('eventType', { bubbles: true, get cancelable() { return true; }
})).bubbles is true |
| 37 PASS (new Event('eventType', { bubbles: true, get cancelable() { return true; }
})).cancelable is true | 36 PASS (new Event('eventType', { bubbles: true, get cancelable() { return true; }
})).cancelable is true |
| 38 PASS (new Event('eventType', { bubbles: true, get cancelable() { return false; }
})).bubbles is true | 37 PASS (new Event('eventType', { bubbles: true, get cancelable() { return false; }
})).bubbles is true |
| 39 PASS (new Event('eventType', { bubbles: true, get cancelable() { return false; }
})).cancelable is false | 38 PASS (new Event('eventType', { bubbles: true, get cancelable() { return false; }
})).cancelable is false |
| 40 PASS new Event('eventType', { bubbles: true, get cancelable() { throw 'Custom Er
ror'; } }) threw exception Custom Error. | 39 PASS new Event('eventType', { bubbles: true, get cancelable() { throw 'Custom Er
ror'; } }) threw exception Custom Error. |
| 41 PASS successfullyParsed is true | 40 PASS successfullyParsed is true |
| 42 | 41 |
| 43 TEST COMPLETE | 42 TEST COMPLETE |
| 44 | 43 |
| OLD | NEW |