Index: LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt |
diff --git a/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt b/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt |
index e2769df2ca33fa48ce2fc8416953cbdba7967a03..27f4f0d6c14bdf2ae4296c91c557a9a066461ecd 100644 |
--- a/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt |
+++ b/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt |
@@ -47,8 +47,8 @@ PASS new KeyboardEvent('eventType', { keyIdentifier: [] }).keyIdentifier is "" |
PASS new KeyboardEvent('eventType', { keyIdentifier: [1, 2, 3] }).keyIdentifier is "1,2,3" |
PASS new KeyboardEvent('eventType', { keyIdentifier: {koakuma: 12345} }).keyIdentifier is "[object Object]" |
PASS new KeyboardEvent('eventType', { keyIdentifier: {valueOf: function () { return 'koakuma'; } } }).keyIdentifier is "[object Object]" |
-PASS new KeyboardEvent('eventType', { location: 0 }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: 1 }).location is 1 |
+PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_STANDARD }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: KeyboardEvent.DOM_KEY_LOCATION_LEFT }).location is KeyboardEvent.DOM_KEY_LOCATION_LEFT |
PASS new KeyboardEvent('eventType', { location: 4294967294 }).location is 4294967294 |
PASS new KeyboardEvent('eventType', { location: 4294967295 }).location is 4294967295 |
PASS new KeyboardEvent('eventType', { keyLocation: 0 }).keyLocation is 0 |
@@ -56,22 +56,22 @@ PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1 |
PASS new KeyboardEvent('eventType', { keyLocation: 1 }).location is 1 |
PASS new KeyboardEvent('eventType', { location: 1 }).keyLocation is 1 |
PASS new KeyboardEvent('eventType', { location: 9007199254740991 }).location is 4294967295 |
-PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location is 0 |
+PASS new KeyboardEvent('eventType', { location: 18446744073709551615 }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
PASS new KeyboardEvent('eventType', { location: 12345678901234567890 }).location is 3944679424 |
PASS new KeyboardEvent('eventType', { location: -1 }).location is 4294967295 |
PASS new KeyboardEvent('eventType', { location: 123.45 }).location is 123 |
-PASS new KeyboardEvent('eventType', { location: NaN }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: undefined }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: null }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: '' }).location is 0 |
+PASS new KeyboardEvent('eventType', { location: NaN }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: undefined }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: null }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: '' }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
PASS new KeyboardEvent('eventType', { location: '12345' }).location is 12345 |
-PASS new KeyboardEvent('eventType', { location: '12345a' }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: 'abc' }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: [] }).location is 0 |
+PASS new KeyboardEvent('eventType', { location: '12345a' }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: 'abc' }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: [] }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
PASS new KeyboardEvent('eventType', { location: [12345] }).location is 12345 |
-PASS new KeyboardEvent('eventType', { location: [12345, 67890] }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: {} }).location is 0 |
-PASS new KeyboardEvent('eventType', { location: {moemoe: 12345} }).location is 0 |
+PASS new KeyboardEvent('eventType', { location: [12345, 67890] }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: {} }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
+PASS new KeyboardEvent('eventType', { location: {moemoe: 12345} }).location is KeyboardEvent.DOM_KEY_LOCATION_STANDARD |
PASS new KeyboardEvent('eventType', { location: {valueOf: function () { return 12345; }} }).location is 12345 |
PASS new KeyboardEvent('eventType', { ctrlKey: false }).ctrlKey is false |
PASS new KeyboardEvent('eventType', { ctrlKey: true }).ctrlKey is true |