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

Unified Diff: LayoutTests/fast/events/keyboardevent-getModifierState-expected.txt

Issue 21030004: Add support for KeyboardEvent.getModifierState() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/keyboardevent-getModifierState-expected.txt
diff --git a/LayoutTests/fast/events/keyboardevent-getModifierState-expected.txt b/LayoutTests/fast/events/keyboardevent-getModifierState-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5515c8411222a26d7409f9d1483b2dfb392dd2b7
--- /dev/null
+++ b/LayoutTests/fast/events/keyboardevent-getModifierState-expected.txt
@@ -0,0 +1,136 @@
+
+Tests KeyboardEvent.getModifierState()
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS lastKeyboardEvent.type is "keydown"
+PASS lastKeyboardEvent.keyCode is 33
+PASS typeof lastKeyboardEvent.getModifierState('Control') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Control') is true
+PASS typeof lastKeyboardEvent.ctrlKey is 'boolean'
+PASS lastKeyboardEvent.ctrlKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Shift') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Shift') is false
+PASS typeof lastKeyboardEvent.shiftKey is 'boolean'
+PASS lastKeyboardEvent.shiftKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Meta') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Meta') is false
+PASS typeof lastKeyboardEvent.metaKey is 'boolean'
+PASS lastKeyboardEvent.metaKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Alt') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Alt') is false
+PASS typeof lastKeyboardEvent.altKey is 'boolean'
+PASS lastKeyboardEvent.altKey is false
+PASS lastKeyboardEvent.type is "keydown"
+PASS lastKeyboardEvent.keyCode is 34
+PASS typeof lastKeyboardEvent.getModifierState('Control') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Control') is false
+PASS typeof lastKeyboardEvent.ctrlKey is 'boolean'
+PASS lastKeyboardEvent.ctrlKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Shift') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Shift') is true
+PASS typeof lastKeyboardEvent.shiftKey is 'boolean'
+PASS lastKeyboardEvent.shiftKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Meta') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Meta') is false
+PASS typeof lastKeyboardEvent.metaKey is 'boolean'
+PASS lastKeyboardEvent.metaKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Alt') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Alt') is false
+PASS typeof lastKeyboardEvent.altKey is 'boolean'
+PASS lastKeyboardEvent.altKey is false
+PASS lastKeyboardEvent.type is "keydown"
+PASS lastKeyboardEvent.keyCode is 36
+PASS typeof lastKeyboardEvent.getModifierState('Control') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Control') is false
+PASS typeof lastKeyboardEvent.ctrlKey is 'boolean'
+PASS lastKeyboardEvent.ctrlKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Shift') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Shift') is false
+PASS typeof lastKeyboardEvent.shiftKey is 'boolean'
+PASS lastKeyboardEvent.shiftKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Meta') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Meta') is false
+PASS typeof lastKeyboardEvent.metaKey is 'boolean'
+PASS lastKeyboardEvent.metaKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Alt') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Alt') is true
+PASS typeof lastKeyboardEvent.altKey is 'boolean'
+PASS lastKeyboardEvent.altKey is true
+PASS lastKeyboardEvent.type is "keydown"
+PASS lastKeyboardEvent.keyCode is 35
+PASS typeof lastKeyboardEvent.getModifierState('Control') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Control') is false
+PASS typeof lastKeyboardEvent.ctrlKey is 'boolean'
+PASS lastKeyboardEvent.ctrlKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Shift') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Shift') is false
+PASS typeof lastKeyboardEvent.shiftKey is 'boolean'
+PASS lastKeyboardEvent.shiftKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Meta') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Meta') is true
+PASS typeof lastKeyboardEvent.metaKey is 'boolean'
+PASS lastKeyboardEvent.metaKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Alt') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Alt') is false
+PASS typeof lastKeyboardEvent.altKey is 'boolean'
+PASS lastKeyboardEvent.altKey is false
+PASS lastKeyboardEvent.type is "keydown"
+PASS lastKeyboardEvent.keyCode is 37
+PASS typeof lastKeyboardEvent.getModifierState('Control') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Control') is true
+PASS typeof lastKeyboardEvent.ctrlKey is 'boolean'
+PASS lastKeyboardEvent.ctrlKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Shift') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Shift') is true
+PASS typeof lastKeyboardEvent.shiftKey is 'boolean'
+PASS lastKeyboardEvent.shiftKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Meta') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Meta') is false
+PASS typeof lastKeyboardEvent.metaKey is 'boolean'
+PASS lastKeyboardEvent.metaKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Alt') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Alt') is false
+PASS typeof lastKeyboardEvent.altKey is 'boolean'
+PASS lastKeyboardEvent.altKey is false
+PASS lastKeyboardEvent.type is "keydown"
+PASS lastKeyboardEvent.keyCode is 39
+PASS typeof lastKeyboardEvent.getModifierState('Control') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Control') is true
+PASS typeof lastKeyboardEvent.ctrlKey is 'boolean'
+PASS lastKeyboardEvent.ctrlKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Shift') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Shift') is true
+PASS typeof lastKeyboardEvent.shiftKey is 'boolean'
+PASS lastKeyboardEvent.shiftKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Meta') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Meta') is false
+PASS typeof lastKeyboardEvent.metaKey is 'boolean'
+PASS lastKeyboardEvent.metaKey is false
+PASS typeof lastKeyboardEvent.getModifierState('Alt') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Alt') is true
+PASS typeof lastKeyboardEvent.altKey is 'boolean'
+PASS lastKeyboardEvent.altKey is true
+PASS lastKeyboardEvent.type is "keydown"
+PASS lastKeyboardEvent.keyCode is 38
+PASS typeof lastKeyboardEvent.getModifierState('Control') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Control') is true
+PASS typeof lastKeyboardEvent.ctrlKey is 'boolean'
+PASS lastKeyboardEvent.ctrlKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Shift') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Shift') is true
+PASS typeof lastKeyboardEvent.shiftKey is 'boolean'
+PASS lastKeyboardEvent.shiftKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Meta') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Meta') is true
+PASS typeof lastKeyboardEvent.metaKey is 'boolean'
+PASS lastKeyboardEvent.metaKey is true
+PASS typeof lastKeyboardEvent.getModifierState('Alt') is 'boolean'
+PASS lastKeyboardEvent.getModifierState('Alt') is true
+PASS typeof lastKeyboardEvent.altKey is 'boolean'
+PASS lastKeyboardEvent.altKey is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698