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

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

Issue 20034002: Add support for KeyboardEvent.location attribute (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 This tests the constructor for the KeyboardEvent DOM class. 2 This tests the constructor for the KeyboardEvent DOM class.
2 3
3 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 ".
4 5
5 6
6 PASS new KeyboardEvent('eventType').bubbles is false 7 PASS new KeyboardEvent('eventType').bubbles is false
7 PASS new KeyboardEvent('eventType').cancelable is false 8 PASS new KeyboardEvent('eventType').cancelable is false
8 PASS new KeyboardEvent('eventType').view is null 9 PASS new KeyboardEvent('eventType').view is null
9 PASS new KeyboardEvent('eventType').detail is 0 10 PASS new KeyboardEvent('eventType').detail is 0
10 PASS new KeyboardEvent('eventType').keyIdentifier is "" 11 PASS new KeyboardEvent('eventType').keyIdentifier is ""
11 PASS new KeyboardEvent('eventType').keyLocation is 0 12 PASS new KeyboardEvent('eventType').location is 0
12 PASS new KeyboardEvent('eventType').ctrlKey is false 13 PASS new KeyboardEvent('eventType').ctrlKey is false
13 PASS new KeyboardEvent('eventType').altKey is false 14 PASS new KeyboardEvent('eventType').altKey is false
14 PASS new KeyboardEvent('eventType').shiftKey is false 15 PASS new KeyboardEvent('eventType').shiftKey is false
15 PASS new KeyboardEvent('eventType').metaKey is false 16 PASS new KeyboardEvent('eventType').metaKey is false
16 PASS new KeyboardEvent('eventType', { bubbles: false }).bubbles is false 17 PASS new KeyboardEvent('eventType', { bubbles: false }).bubbles is false
17 PASS new KeyboardEvent('eventType', { bubbles: true }).bubbles is true 18 PASS new KeyboardEvent('eventType', { bubbles: true }).bubbles is true
18 PASS new KeyboardEvent('eventType', { cancelable: false }).cancelable is false 19 PASS new KeyboardEvent('eventType', { cancelable: false }).cancelable is false
19 PASS new KeyboardEvent('eventType', { cancelable: true }).cancelable is true 20 PASS new KeyboardEvent('eventType', { cancelable: true }).cancelable is true
20 PASS new KeyboardEvent('eventType', { view: window }).view is window 21 PASS new KeyboardEvent('eventType', { view: window }).view is window
21 PASS new KeyboardEvent('eventType', { view: this }).view is this 22 PASS new KeyboardEvent('eventType', { view: this }).view is this
(...skipping 17 matching lines...) Expand all
39 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n ull" 40 PASS new KeyboardEvent('eventType', { keyIdentifier: null }).keyIdentifier is "n ull"
40 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is " false" 41 PASS new KeyboardEvent('eventType', { keyIdentifier: false }).keyIdentifier is " false"
41 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t rue" 42 PASS new KeyboardEvent('eventType', { keyIdentifier: true }).keyIdentifier is "t rue"
42 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is " 12345" 43 PASS new KeyboardEvent('eventType', { keyIdentifier: 12345 }).keyIdentifier is " 12345"
43 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key Identifier is "18446744073709552000" 44 PASS new KeyboardEvent('eventType', { keyIdentifier: 18446744073709551615 }).key Identifier is "18446744073709552000"
44 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na N" 45 PASS new KeyboardEvent('eventType', { keyIdentifier: NaN }).keyIdentifier is "Na N"
45 PASS new KeyboardEvent('eventType', { keyIdentifier: [] }).keyIdentifier is "" 46 PASS new KeyboardEvent('eventType', { keyIdentifier: [] }).keyIdentifier is ""
46 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"
47 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]"
48 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
51 PASS new KeyboardEvent('eventType', { location: 1 }).location is 1
52 PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 429496 7294
53 PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 429496 7295
49 PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0 54 PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0
50 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1 55 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1
51 PASS new KeyboardEvent('eventType', { keyLocation: 4294967294 }).keyLocation is 4294967294 56 PASS new KeyboardEvent('eventType', { keyLocation: 1 }).location is 1
52 PASS new KeyboardEvent('eventType', { keyLocation: 4294967295 }).keyLocation is 4294967295 57 PASS new KeyboardEvent('eventType', { location: 1 }).keyLocation is 1
53 PASS new KeyboardEvent('eventType', { keyLocation: 9007199254740991 }).keyLocati on is 4294967295 58 PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is 4294967295
54 PASS new KeyboardEvent('eventType', { keyLocation: 18446744073709551615 }).keyLo cation is 0 59 PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location is 0
55 PASS new KeyboardEvent('eventType', { keyLocation: 12345678901234567890 }).keyLo cation is 3944679424 60 PASS new KeyboardEvent('eventType', { location: 12345678901234567890 }).location is 3944679424
56 PASS new KeyboardEvent('eventType', { keyLocation: -1 }).keyLocation is 42949672 95 61 PASS new KeyboardEvent('eventType', { location: -1 }).location is 4294967295
57 PASS new KeyboardEvent('eventType', { keyLocation: 123.45 }).keyLocation is 123 62 PASS new KeyboardEvent('eventType', { location: 123.45 }).location is 123
58 PASS new KeyboardEvent('eventType', { keyLocation: NaN }).keyLocation is 0 63 PASS new KeyboardEvent('eventType', { location: NaN }).location is 0
59 PASS new KeyboardEvent('eventType', { keyLocation: undefined }).keyLocation is 0 64 PASS new KeyboardEvent('eventType', { location: undefined }).location is 0
60 PASS new KeyboardEvent('eventType', { keyLocation: null }).keyLocation is 0 65 PASS new KeyboardEvent('eventType', { location: null }).location is 0
61 PASS new KeyboardEvent('eventType', { keyLocation: '' }).keyLocation is 0 66 PASS new KeyboardEvent('eventType', { location: '' }).location is 0
62 PASS new KeyboardEvent('eventType', { keyLocation: '12345' }).keyLocation is 123 45 67 PASS new KeyboardEvent('eventType', { location: '12345' }).location is 12345
63 PASS new KeyboardEvent('eventType', { keyLocation: '12345a' }).keyLocation is 0 68 PASS new KeyboardEvent('eventType', { location: '12345a' }).location is 0
64 PASS new KeyboardEvent('eventType', { keyLocation: 'abc' }).keyLocation is 0 69 PASS new KeyboardEvent('eventType', { location: 'abc' }).location is 0
65 PASS new KeyboardEvent('eventType', { keyLocation: [] }).keyLocation is 0 70 PASS new KeyboardEvent('eventType', { location: [] }).location is 0
66 PASS new KeyboardEvent('eventType', { keyLocation: [12345] }).keyLocation is 123 45 71 PASS new KeyboardEvent('eventType', { location: [12345] }).location is 12345
67 PASS new KeyboardEvent('eventType', { keyLocation: [12345, 67890] }).keyLocation is 0 72 PASS new KeyboardEvent('eventType', { location: [12345, 67890] }).location is 0
68 PASS new KeyboardEvent('eventType', { keyLocation: {} }).keyLocation is 0 73 PASS new KeyboardEvent('eventType', { location: {} }).location is 0
69 PASS new KeyboardEvent('eventType', { keyLocation: {moemoe: 12345} }).keyLocatio n is 0 74 PASS new KeyboardEvent('eventType', { location: {moemoe: 12345} }).location is 0
70 PASS new KeyboardEvent('eventType', { keyLocation: {valueOf: function () { retur n 12345; }} }).keyLocation is 12345 75 PASS new KeyboardEvent('eventType', { location: {valueOf: function () { return 1 2345; }} }).location is 12345
71 PASS new KeyboardEvent('eventType', { ctrlKey: false }).ctrlKey is false 76 PASS new KeyboardEvent('eventType', { ctrlKey: false }).ctrlKey is false
72 PASS new KeyboardEvent('eventType', { ctrlKey: true }).ctrlKey is true 77 PASS new KeyboardEvent('eventType', { ctrlKey: true }).ctrlKey is true
73 PASS new KeyboardEvent('eventType', { altKey: false }).altKey is false 78 PASS new KeyboardEvent('eventType', { altKey: false }).altKey is false
74 PASS new KeyboardEvent('eventType', { altKey: true }).altKey is true 79 PASS new KeyboardEvent('eventType', { altKey: true }).altKey is true
75 PASS new KeyboardEvent('eventType', { shiftKey: false }).shiftKey is false 80 PASS new KeyboardEvent('eventType', { shiftKey: false }).shiftKey is false
76 PASS new KeyboardEvent('eventType', { shiftKey: true }).shiftKey is true 81 PASS new KeyboardEvent('eventType', { shiftKey: true }).shiftKey is true
77 PASS new KeyboardEvent('eventType', { metaKey: false }).metaKey is false 82 PASS new KeyboardEvent('eventType', { metaKey: false }).metaKey is false
78 PASS new KeyboardEvent('eventType', { metaKey: true }).metaKey is true 83 PASS new KeyboardEvent('eventType', { metaKey: true }).metaKey is true
79 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
80 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
81 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
82 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
83 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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"
84 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: true, shiftKey: true, metaKey: true }).keyLocation 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
85 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
86 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
87 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
88 PASS new KeyboardEvent('eventType', { bubbles: true, cancelable: true, view: win dow, detail: 111, keyIdentifier: 'chocolate', keyLocation: 222, ctrlKey: true, a ltKey: 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
89 PASS successfullyParsed is true 94 PASS successfullyParsed is true
90 95
91 TEST COMPLETE 96 TEST COMPLETE
92 97
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/constructors/keyboard-event-constructor.html ('k') | LayoutTests/fast/events/init-events-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698