Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: LayoutTests/fast/events/constructors/autocomplete-error-event-constructor-expected.txt

Issue 1190723002: Make AutocompleteErrorEventInit.reason be of type AutocompleteErrorReason (not DOMString) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 This tests the constructor for the AutocompleteErrorEvent DOM class. 1 This tests the constructor for the AutocompleteErrorEvent 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 AutocompleteErrorEvent('eventType').bubbles is false 6 PASS new AutocompleteErrorEvent('eventType').bubbles is false
7 PASS new AutocompleteErrorEvent('eventType').cancelable is false 7 PASS new AutocompleteErrorEvent('eventType').cancelable is false
8 PASS new AutocompleteErrorEvent('eventType').reason is "" 8 PASS new AutocompleteErrorEvent('eventType').reason is ""
9 PASS new AutocompleteErrorEvent('eventType', { bubbles: false }).bubbles is fals e 9 PASS new AutocompleteErrorEvent('eventType', { bubbles: false }).bubbles is fals e
10 PASS new AutocompleteErrorEvent('eventType', { bubbles: true }).bubbles is true 10 PASS new AutocompleteErrorEvent('eventType', { bubbles: true }).bubbles is true
11 PASS new AutocompleteErrorEvent('eventType', { cancelable: false }).cancelable i s false 11 PASS new AutocompleteErrorEvent('eventType', { cancelable: false }).cancelable i s false
12 PASS new AutocompleteErrorEvent('eventType', { cancelable: true }).cancelable is true 12 PASS new AutocompleteErrorEvent('eventType', { cancelable: true }).cancelable is true
13 PASS new AutocompleteErrorEvent('eventType', { reason: 'doremi' }).reason is "do remi" 13 PASS new AutocompleteErrorEvent('eventType', { reason: 'cancel' }).reason is "ca ncel"
14 PASS new AutocompleteErrorEvent('eventType', { reason: '' }).reason is "" 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"
15 PASS new AutocompleteErrorEvent('eventType', { reason: undefined }).reason is "" 17 PASS new AutocompleteErrorEvent('eventType', { reason: undefined }).reason is ""
16 PASS new AutocompleteErrorEvent('eventType', { reason: null }).reason is "null" 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..
17 PASS new AutocompleteErrorEvent('eventType', { reason: false }).reason is "false " 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..
18 PASS new AutocompleteErrorEvent('eventType', { reason: true }).reason is "true" 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..
19 PASS new AutocompleteErrorEvent('eventType', { reason: 12345 }).reason is "12345 " 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..
20 PASS new AutocompleteErrorEvent('eventType', { reason: 18446744073709551615 }).r eason is "18446744073709552000" 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..
21 PASS new AutocompleteErrorEvent('eventType', { reason: NaN }).reason is "NaN" 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..
22 PASS new AutocompleteErrorEvent('eventType', { reason: [] }).reason is "" 24 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: '' }).bubbles is true
23 PASS new AutocompleteErrorEvent('eventType', { reason: [1, 2, 3] }).reason is "1 ,2,3" 25 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'cancel' }).cancelable is true
24 PASS new AutocompleteErrorEvent('eventType', { reason: {doremi: 12345} }).reason is "[object Object]" 26 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'disabled' }).reason is "disabled"
25 PASS new AutocompleteErrorEvent('eventType', { reason: {valueOf: function () { r eturn 'doremi'; } } }).reason is "[object Object]"
26 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'doremi' }).bubbles is true
27 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'doremi' }).cancelable is true
28 PASS new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'doremi' }).reason is "doremi"
29 PASS successfullyParsed is true 27 PASS successfullyParsed is true
30 28
31 TEST COMPLETE 29 TEST COMPLETE
32 30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698