OLD | NEW |
| (Empty) |
1 This tests the constructor for the AutocompleteErrorEvent DOM class. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS new AutocompleteErrorEvent('eventType').bubbles is false | |
7 PASS new AutocompleteErrorEvent('eventType').cancelable is false | |
8 PASS new AutocompleteErrorEvent('eventType').reason is "" | |
9 PASS new AutocompleteErrorEvent('eventType', { bubbles: false }).bubbles is fals
e | |
10 PASS new AutocompleteErrorEvent('eventType', { bubbles: true }).bubbles is true | |
11 PASS new AutocompleteErrorEvent('eventType', { cancelable: false }).cancelable i
s false | |
12 PASS new AutocompleteErrorEvent('eventType', { cancelable: true }).cancelable is
true | |
13 PASS new AutocompleteErrorEvent('eventType', { reason: 'cancel' }).reason is "ca
ncel" | |
14 PASS new AutocompleteErrorEvent('eventType', { reason: '' }).reason is "" | |
15 PASS new AutocompleteErrorEvent('eventType', { reason: 'disabled' }).reason is "
disabled" | |
16 PASS new AutocompleteErrorEvent('eventType', { reason: 'invalid' }).reason is "i
nvalid" | |
17 PASS new AutocompleteErrorEvent('eventType', { reason: undefined }).reason is "" | |
18 PASS new AutocompleteErrorEvent('eventType', { reason: 'doremi' }) threw excepti
on TypeError: Failed to construct 'AutocompleteErrorEvent': The provided value '
doremi' is not a valid enum value of type AutocompleteErrorReason.. | |
19 PASS new AutocompleteErrorEvent('eventType', { reason: null }) threw exception T
ypeError: Failed to construct 'AutocompleteErrorEvent': The provided value 'null
' is not a valid enum value of type AutocompleteErrorReason.. | |
20 PASS new AutocompleteErrorEvent('eventType', { reason: false }) threw exception
TypeError: Failed to construct 'AutocompleteErrorEvent': The provided value 'fal
se' is not a valid enum value of type AutocompleteErrorReason.. | |
21 PASS new AutocompleteErrorEvent('eventType', { reason: true }) threw exception T
ypeError: Failed to construct 'AutocompleteErrorEvent': The provided value 'true
' is not a valid enum value of type AutocompleteErrorReason.. | |
22 PASS new AutocompleteErrorEvent('eventType', { reason: 12345 }) threw exception
TypeError: Failed to construct 'AutocompleteErrorEvent': The provided value '123
45' is not a valid enum value of type AutocompleteErrorReason.. | |
23 PASS new AutocompleteErrorEvent('eventType', { reason: NaN }) threw exception Ty
peError: Failed to construct 'AutocompleteErrorEvent': The provided value 'NaN'
is not a valid enum value of type AutocompleteErrorReason.. | |
24 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true,
reason: '' }).bubbles is true | |
25 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true,
reason: 'cancel' }).cancelable is true | |
26 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true,
reason: 'disabled' }).reason is "disabled" | |
27 PASS successfullyParsed is true | |
28 | |
29 TEST COMPLETE | |
30 | |
OLD | NEW |