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

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

Issue 20986003: Define DOM_KEY_LOCATION_* constants on KeyboardEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 CONSOLE MESSAGE: 'KeyboardEvent.keyLocation'' is deprecated. Please use 'Keyboar dEvent.location' instead. 1 CONSOLE MESSAGE: 'KeyboardEvent.keyLocation'' is deprecated. Please use 'Keyboar dEvent.location' instead.
2 This tests the constructor for the KeyboardEvent DOM class. 2 This tests the constructor for the KeyboardEvent DOM class.
3 3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 5
6 6
7 PASS new KeyboardEvent('eventType').bubbles is false 7 PASS new KeyboardEvent('eventType').bubbles is false
8 PASS new KeyboardEvent('eventType').cancelable is false 8 PASS new KeyboardEvent('eventType').cancelable is false
9 PASS new KeyboardEvent('eventType').view is null 9 PASS new KeyboardEvent('eventType').view is null
10 PASS new KeyboardEvent('eventType').detail is 0 10 PASS new KeyboardEvent('eventType').detail is 0
(...skipping 29 matching lines...) Expand all
40 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n ull" 40 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n ull"
41 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is " false" 41 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is " false"
42 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t rue" 42 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t rue"
43 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is " 12345" 43 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is " 12345"
44 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key Identifier is "18446744073709552000" 44 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key Identifier is "18446744073709552000"
45 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na N" 45 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na N"
46 PASS new KeyboardEvent('eventType', { keyIdentifier: [] }).keyIdentifier is "" 46 PASS new KeyboardEvent('eventType', { keyIdentifier: [] }).keyIdentifier is ""
47 PASS new KeyboardEvent('eventType', { keyIdentifier: [1, 2, 3] }).keyIdentifier is "1,2,3" 47 PASS new KeyboardEvent('eventType', { keyIdentifier: [1, 2, 3] }).keyIdentifier is "1,2,3"
48 PASS new KeyboardEvent('eventType', { keyIdentifier: {koakuma: 12345} }).keyIden tifier is "[object Object]" 48 PASS new KeyboardEvent('eventType', { keyIdentifier: {koakuma: 12345} }).keyIden tifier is "[object Object]"
49 PASS new KeyboardEvent('eventType', { keyIdentifier: {valueOf: function () { ret urn 'koakuma'; } } }).keyIdentifier is "[object Object]" 49 PASS new KeyboardEvent('eventType', { keyIdentifier: {valueOf: function () { ret urn 'koakuma'; } } }).keyIdentifier is "[object Object]"
50 PASS new KeyboardEvent('eventType', { location: 0 }).location is 0 50 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_S TANDARD }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
51 PASS new KeyboardEvent('eventType', { location: 1 }).location is 1 51 PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_L EFT }).location is KeyboardEvent.DOM_KEY_LOCATION_LEFT
52 PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 429496 7294 52 PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 429496 7294
53 PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 429496 7295 53 PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 429496 7295
54 PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0 54 PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0
55 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1 55 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1
56 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).location is 1 56 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).location is 1
57 PASS new KeyboardEvent('eventType', { location: 1 }).keyLocation is 1 57 PASS new KeyboardEvent('eventType', { location: 1 }).keyLocation is 1
58 PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is 4294967295 58 PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is 4294967295
59 PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location is 0 59 PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
60 PASS new KeyboardEvent('eventType', { location: 12345678901234567890 }).location is 3944679424 60 PASS new KeyboardEvent('eventType', { location: 12345678901234567890 }).location is 3944679424
61 PASS new KeyboardEvent('eventType', { location: -1 }).location is 4294967295 61 PASS new KeyboardEvent('eventType', { location: -1 }).location is 4294967295
62 PASS new KeyboardEvent('eventType', { location: 123.45 }).location is 123 62 PASS new KeyboardEvent('eventType', { location: 123.45 }).location is 123
63 PASS new KeyboardEvent('eventType', { location: NaN }).location is 0 63 PASS new KeyboardEvent('eventType', { location: NaN }).location is KeyboardEvent .DOM_KEY_LOCATION_STANDARD
64 PASS new KeyboardEvent('eventType', { location: undefined }).location is 0 64 PASS new KeyboardEvent('eventType', { location: undefined }).location is Keyboar dEvent.DOM_KEY_LOCATION_STANDARD
65 PASS new KeyboardEvent('eventType', { location: null }).location is 0 65 PASS new KeyboardEvent('eventType', { location: null }).location is KeyboardEven t.DOM_KEY_LOCATION_STANDARD
66 PASS new KeyboardEvent('eventType', { location: '' }).location is 0 66 PASS new KeyboardEvent('eventType', { location: '' }).location is KeyboardEvent. DOM_KEY_LOCATION_STANDARD
67 PASS new KeyboardEvent('eventType', { location: '12345' }).location is 12345 67 PASS new KeyboardEvent('eventType', { location: '12345' }).location is 12345
68 PASS new KeyboardEvent('eventType', { location: '12345a' }).location is 0 68 PASS new KeyboardEvent('eventType', { location: '12345a' }).location is Keyboard Event.DOM_KEY_LOCATION_STANDARD
69 PASS new KeyboardEvent('eventType', { location: 'abc' }).location is 0 69 PASS new KeyboardEvent('eventType', { location: 'abc' }).location is KeyboardEve nt.DOM_KEY_LOCATION_STANDARD
70 PASS new KeyboardEvent('eventType', { location: [] }).location is 0 70 PASS new KeyboardEvent('eventType', { location: [] }).location is KeyboardEvent. DOM_KEY_LOCATION_STANDARD
71 PASS new KeyboardEvent('eventType', { location: [12345] }).location is 12345 71 PASS new KeyboardEvent('eventType', { location: [12345] }).location is 12345
72 PASS new KeyboardEvent('eventType', { location: [12345, 67890] }).location is 0 72 PASS new KeyboardEvent('eventType', { location: [12345, 67890] }).location is Ke yboardEvent.DOM_KEY_LOCATION_STANDARD
73 PASS new KeyboardEvent('eventType', { location: {} }).location is 0 73 PASS new KeyboardEvent('eventType', { location: {} }).location is KeyboardEvent. DOM_KEY_LOCATION_STANDARD
74 PASS new KeyboardEvent('eventType', { location: {moemoe: 12345} }).location is 0 74 PASS new KeyboardEvent('eventType', { location: {moemoe: 12345} }).location is K eyboardEvent.DOM_KEY_LOCATION_STANDARD
75 PASS new KeyboardEvent('eventType', { location: {valueOf: function () { return 1 2345; }} }).location is 12345 75 PASS new KeyboardEvent('eventType', { location: {valueOf: function () { return 1 2345; }} }).location is 12345
76 PASS new KeyboardEvent('eventType', { ctrlKey: false }).ctrlKey is false 76 PASS new KeyboardEvent('eventType', { ctrlKey: false }).ctrlKey is false
77 PASS new KeyboardEvent('eventType', { ctrlKey: true }).ctrlKey is true 77 PASS new KeyboardEvent('eventType', { ctrlKey: true }).ctrlKey is true
78 PASS new KeyboardEvent('eventType', { altKey: false }).altKey is false 78 PASS new KeyboardEvent('eventType', { altKey: false }).altKey is false
79 PASS new KeyboardEvent('eventType', { altKey: true }).altKey is true 79 PASS new KeyboardEvent('eventType', { altKey: true }).altKey is true
80 PASS new KeyboardEvent('eventType', { shiftKey: false }).shiftKey is false 80 PASS new KeyboardEvent('eventType', { shiftKey: false }).shiftKey is false
81 PASS new KeyboardEvent('eventType', { shiftKey: true }).shiftKey is true 81 PASS new KeyboardEvent('eventType', { shiftKey: true }).shiftKey is true
82 PASS new KeyboardEvent('eventType', { metaKey: false }).metaKey is false 82 PASS new KeyboardEvent('eventType', { metaKey: false }).metaKey is false
83 PASS new KeyboardEvent('eventType', { metaKey: true }).metaKey is true 83 PASS new KeyboardEvent('eventType', { metaKey: true }).metaKey is true
84 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).bubbles is true 84 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).bubbles is true
85 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).cancelable is true 85 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).cancelable is true
86 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).view is window 86 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).view is window
87 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).detail is 111 87 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).detail is 111
88 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).keyIdentifier is "chocolate" 88 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).keyIdentifier is "chocolate"
89 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).location is 222 89 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).location is 222
90 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).ctrlKey is true 90 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).ctrlKey is true
91 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).altKey is true 91 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).altKey is true
92 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).shiftKey is true 92 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).shiftKey is true
93 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).metaKey is true 93 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', location: 222, ctrlKey: true, altK ey: true, shiftKey: true, metaKey: true }).metaKey is true
94 PASS successfullyParsed is true 94 PASS successfullyParsed is true
95 95
96 TEST COMPLETE 96 TEST COMPLETE
97 97
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698