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

Unified Diff: chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js

Issue 297833015: Support standard keyboard keys emulated by the braille drivers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fix typos and clarify some docs. Created 6 years, 7 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
« no previous file with comments | « chrome/common/extensions/api/braille_display_private.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js
diff --git a/chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js b/chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js
index 875e4be7fd0ac0f0561875abd62f54b4963d64ce..7437bb09f4fa4ee4de8aa33ef3dd53b4250fb07b 100644
--- a/chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js
+++ b/chrome/test/data/extensions/api_test/braille_display_private/key_events/test.js
@@ -8,16 +8,25 @@
var pass = chrome.test.callbackPass;
var EXPECTED_EVENTS = [
- { "command": "line_up" },
- { "command": "line_down" },
- { "command": "pan_left" },
- { "command": "pan_right" },
- { "command": "top" },
- { "command": "bottom" },
- { "command": "routing", "displayPosition": 5 },
+ { command: "line_up" },
+ { command: "line_down" },
+ { command: "pan_left" },
+ { command: "pan_right" },
+ { command: "top" },
+ { command: "bottom" },
+ { command: "routing", "displayPosition": 5 },
+ { command: "standard_key", standardKeyChar: "A" },
+ { command: "standard_key", standardKeyChar: "\u00E5" },
+ { command: "standard_key", standardKeyChar: "\u0100" },
+ // UTF-16 of U+1F639.
+ { command: "standard_key", standardKeyChar: "\uD83D\uDE39" },
+ { command: "standard_key", standardKeyCode: "Backspace" },
+ { command: "standard_key", standardKeyCode: "Tab", shiftKey: true },
+ { command: "standard_key", standardKeyCode: "F3", altKey: true },
+ { command: "dots", ctrlKey: true, brailleDots: 0x1 | 0x2}
]
for (var i = 0; i < 256; ++i) {
- EXPECTED_EVENTS.push({ "command": "dots", "brailleDots": i });
+ EXPECTED_EVENTS.push({ command: "dots", "brailleDots": i });
}
var event_number = 0;
« no previous file with comments | « chrome/common/extensions/api/braille_display_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698