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

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

Issue 1165693005: Change MouseEvent.button to be 'short' instead of 'unsigned short' (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 MouseEvent DOM class. 1 This tests the constructor for the MouseEvent 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 MouseEvent('eventType').bubbles is false 6 PASS new MouseEvent('eventType').bubbles is false
7 PASS new MouseEvent('eventType').cancelable is false 7 PASS new MouseEvent('eventType').cancelable is false
8 PASS new MouseEvent('eventType').view is null 8 PASS new MouseEvent('eventType').view is null
9 PASS new MouseEvent('eventType').detail is 0 9 PASS new MouseEvent('eventType').detail is 0
10 PASS new MouseEvent('eventType').screenX is 0 10 PASS new MouseEvent('eventType').screenX is 0
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 PASS new MouseEvent('eventType', { ctrlKey: false }).ctrlKey is false 147 PASS new MouseEvent('eventType', { ctrlKey: false }).ctrlKey is false
148 PASS new MouseEvent('eventType', { ctrlKey: true }).ctrlKey is true 148 PASS new MouseEvent('eventType', { ctrlKey: true }).ctrlKey is true
149 PASS new MouseEvent('eventType', { altKey: false }).altKey is false 149 PASS new MouseEvent('eventType', { altKey: false }).altKey is false
150 PASS new MouseEvent('eventType', { altKey: true }).altKey is true 150 PASS new MouseEvent('eventType', { altKey: true }).altKey is true
151 PASS new MouseEvent('eventType', { shiftKey: false }).shiftKey is false 151 PASS new MouseEvent('eventType', { shiftKey: false }).shiftKey is false
152 PASS new MouseEvent('eventType', { shiftKey: true }).shiftKey is true 152 PASS new MouseEvent('eventType', { shiftKey: true }).shiftKey is true
153 PASS new MouseEvent('eventType', { metaKey: false }).metaKey is false 153 PASS new MouseEvent('eventType', { metaKey: false }).metaKey is false
154 PASS new MouseEvent('eventType', { metaKey: true }).metaKey is true 154 PASS new MouseEvent('eventType', { metaKey: true }).metaKey is true
155 PASS new MouseEvent('eventType', { button: 0 }).button is 0 155 PASS new MouseEvent('eventType', { button: 0 }).button is 0
156 PASS new MouseEvent('eventType', { button: 1 }).button is 1 156 PASS new MouseEvent('eventType', { button: 1 }).button is 1
157 PASS new MouseEvent('eventType', { button: 65534 }).button is 65534 157 PASS new MouseEvent('eventType', { button: -2 }).button is -2
158 PASS new MouseEvent('eventType', { button: -32768 }).button is -32768
159 PASS new MouseEvent('eventType', { button: 32767 }).button is 32767
158 PASS new MouseEvent('eventType', { button: 65535 }).button is 0 160 PASS new MouseEvent('eventType', { button: 65535 }).button is 0
159 PASS new MouseEvent('eventType', { button: 9007199254740991 }).button is 0 161 PASS new MouseEvent('eventType', { button: 9007199254740991 }).button is 0
160 PASS new MouseEvent('eventType', { button: -1 }).button is 0 162 PASS new MouseEvent('eventType', { button: -1 }).button is 0
161 PASS new MouseEvent('eventType', { button: 18446744073709551615 }).button is 0 163 PASS new MouseEvent('eventType', { button: 18446744073709551615 }).button is 0
162 PASS new MouseEvent('eventType', { button: 12345678901234567890 }).button is 204 8 164 PASS new MouseEvent('eventType', { button: 12345678901234567890 }).button is 204 8
163 PASS new MouseEvent('eventType', { button: 123.45 }).button is 123 165 PASS new MouseEvent('eventType', { button: 123.45 }).button is 123
164 PASS new MouseEvent('eventType', { button: NaN }).button is 0 166 PASS new MouseEvent('eventType', { button: NaN }).button is 0
167 PASS new MouseEvent('eventType', { button: 65534 }).button is -2
168 PASS new MouseEvent('eventType', { button: -32769 }).button is 32767
169 PASS new MouseEvent('eventType', { button: 32768 }).button is -32768
165 PASS new MouseEvent('eventType', { button: undefined }).button is 0 170 PASS new MouseEvent('eventType', { button: undefined }).button is 0
166 PASS new MouseEvent('eventType', { button: null }).button is 0 171 PASS new MouseEvent('eventType', { button: null }).button is 0
167 PASS new MouseEvent('eventType', { button: '' }).button is 0 172 PASS new MouseEvent('eventType', { button: '' }).button is 0
168 PASS new MouseEvent('eventType', { button: '12345' }).button is 12345 173 PASS new MouseEvent('eventType', { button: '12345' }).button is 12345
169 PASS new MouseEvent('eventType', { button: '12345a' }).button is 0 174 PASS new MouseEvent('eventType', { button: '12345a' }).button is 0
170 PASS new MouseEvent('eventType', { button: 'abc' }).button is 0 175 PASS new MouseEvent('eventType', { button: 'abc' }).button is 0
171 PASS new MouseEvent('eventType', { button: [] }).button is 0 176 PASS new MouseEvent('eventType', { button: [] }).button is 0
172 PASS new MouseEvent('eventType', { button: [12345] }).button is 12345 177 PASS new MouseEvent('eventType', { button: [12345] }).button is 12345
173 PASS new MouseEvent('eventType', { button: [12345, 67890] }).button is 0 178 PASS new MouseEvent('eventType', { button: [12345, 67890] }).button is 0
174 PASS new MouseEvent('eventType', { button: {} }).button is 0 179 PASS new MouseEvent('eventType', { button: {} }).button is 0
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).ctrlKey is true 230 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).ctrlKey is true
226 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).shiftKey is true 231 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).shiftKey is true
227 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).altKey is true 232 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).altKey is true
228 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).metaKey is true 233 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).metaKey is true
229 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).button is 666 234 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).button is 666
230 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).relatedTarget is testDiv 235 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, buttons: 777, re latedTarget: testDiv }).relatedTarget is testDiv
231 PASS successfullyParsed is true 236 PASS successfullyParsed is true
232 237
233 TEST COMPLETE 238 TEST COMPLETE
234 239
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698