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

Unified 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: Created 7 years, 5 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/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 dee629a77aa83df9743e36497632676238215f56..a016c0febe9f920467935711f3708c34685348bf 100644
--- a/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt
+++ b/LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt
@@ -46,27 +46,27 @@ 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', { keyLocation: 0 }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: 1 }).keyLocation is 1
+PASS new KeyboardEvent('eventType', { keyLocation: KeyboardEvent.DOM_KEY_LOCATION_STANDARD }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: KeyboardEvent.DOM_KEY_LOCATION_LEFT }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_LEFT
PASS new KeyboardEvent('eventType', { keyLocation: 4294967294 }).keyLocation is 4294967294
PASS new KeyboardEvent('eventType', { keyLocation: 4294967295 }).keyLocation is 4294967295
PASS new KeyboardEvent('eventType', { keyLocation: 9007199254740991 }).keyLocation is 4294967295
-PASS new KeyboardEvent('eventType', { keyLocation: 18446744073709551615 }).keyLocation is 0
+PASS new KeyboardEvent('eventType', { keyLocation: 18446744073709551615 }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
PASS new KeyboardEvent('eventType', { keyLocation: 12345678901234567890 }).keyLocation is 3944679424
PASS new KeyboardEvent('eventType', { keyLocation: -1 }).keyLocation is 4294967295
PASS new KeyboardEvent('eventType', { keyLocation: 123.45 }).keyLocation is 123
-PASS new KeyboardEvent('eventType', { keyLocation: NaN }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: undefined }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: null }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: '' }).keyLocation is 0
+PASS new KeyboardEvent('eventType', { keyLocation: NaN }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: undefined }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: null }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: '' }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
PASS new KeyboardEvent('eventType', { keyLocation: '12345' }).keyLocation is 12345
-PASS new KeyboardEvent('eventType', { keyLocation: '12345a' }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: 'abc' }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: [] }).keyLocation is 0
+PASS new KeyboardEvent('eventType', { keyLocation: '12345a' }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: 'abc' }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: [] }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
PASS new KeyboardEvent('eventType', { keyLocation: [12345] }).keyLocation is 12345
-PASS new KeyboardEvent('eventType', { keyLocation: [12345, 67890] }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: {} }).keyLocation is 0
-PASS new KeyboardEvent('eventType', { keyLocation: {moemoe: 12345} }).keyLocation is 0
+PASS new KeyboardEvent('eventType', { keyLocation: [12345, 67890] }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: {} }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
+PASS new KeyboardEvent('eventType', { keyLocation: {moemoe: 12345} }).keyLocation is KeyboardEvent.DOM_KEY_LOCATION_STANDARD
PASS new KeyboardEvent('eventType', { keyLocation: {valueOf: function () { return 12345; }} }).keyLocation is 12345
PASS new KeyboardEvent('eventType', { ctrlKey: false }).ctrlKey is false
PASS new KeyboardEvent('eventType', { ctrlKey: true }).ctrlKey is true

Powered by Google App Engine
This is Rietveld 408576698