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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
diff --git a/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt b/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
index 14312b381d26d53701d684c2375b9f8711f531b3..f71a1c08a6e003ae749fab20dddd8bddf9ee1828 100644
--- a/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
+++ b/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
@@ -154,7 +154,9 @@ PASS new MouseEvent('eventType', { metaKey: false }).metaKey is false
PASS new MouseEvent('eventType', { metaKey: true }).metaKey is true
PASS new MouseEvent('eventType', { button: 0 }).button is 0
PASS new MouseEvent('eventType', { button: 1 }).button is 1
-PASS new MouseEvent('eventType', { button: 65534 }).button is 65534
+PASS new MouseEvent('eventType', { button: -2 }).button is -2
+PASS new MouseEvent('eventType', { button: -32768 }).button is -32768
+PASS new MouseEvent('eventType', { button: 32767 }).button is 32767
PASS new MouseEvent('eventType', { button: 65535 }).button is 0
PASS new MouseEvent('eventType', { button: 9007199254740991 }).button is 0
PASS new MouseEvent('eventType', { button: -1 }).button is 0
@@ -162,6 +164,9 @@ PASS new MouseEvent('eventType', { button: 18446744073709551615 }).button is 0
PASS new MouseEvent('eventType', { button: 12345678901234567890 }).button is 2048
PASS new MouseEvent('eventType', { button: 123.45 }).button is 123
PASS new MouseEvent('eventType', { button: NaN }).button is 0
+PASS new MouseEvent('eventType', { button: 65534 }).button is -2
+PASS new MouseEvent('eventType', { button: -32769 }).button is 32767
+PASS new MouseEvent('eventType', { button: 32768 }).button is -32768
PASS new MouseEvent('eventType', { button: undefined }).button is 0
PASS new MouseEvent('eventType', { button: null }).button is 0
PASS new MouseEvent('eventType', { button: '' }).button is 0

Powered by Google App Engine
This is Rietveld 408576698