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

Unified Diff: chrome/test/data/chromeos/virtual_keyboard/inputview/typing_test.js

Issue 259603002: Add touch and basic longpress typing tests for the IME keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/test/data/chromeos/virtual_keyboard/inputview/test_base.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/chromeos/virtual_keyboard/inputview/typing_test.js
diff --git a/chrome/test/data/chromeos/virtual_keyboard/inputview/typing_test.js b/chrome/test/data/chromeos/virtual_keyboard/inputview/typing_test.js
index 5f3d69afd1793c5143ef5a5563252812742ef169..a80a28fcc95d2fd741e1837d84b5f920cd3886c5 100644
--- a/chrome/test/data/chromeos/virtual_keyboard/inputview/typing_test.js
+++ b/chrome/test/data/chromeos/virtual_keyboard/inputview/typing_test.js
@@ -5,11 +5,24 @@
*/
/**
- * Tests typing in the lowecase keyset.
+ * Tests typing in the lowercase keyset.
*/
function testLowercaseKeyset() {
+ // Mouse events.
mockMouseType('l');
mockMouseType('p');
- mockMouseType('e');
- mockMouseType('f');
+
+ // Touch events.
+ mockTouchType('l');
+ mockTouchType('p');
+}
+
+/**
+ * Tests longpress on the keyboard.
+ */
+function testLongpress() {
+ // TODO(rsadam@): Add support for mock longpressing the non-default selection.
+ mockLongpress('e', ['e', 'E'], 'e');
+ mockLongpress('a', ['a', 'A'], 'a');
+ // TODO(rsadam@): Test cancelling longpress.
}
« no previous file with comments | « chrome/test/data/chromeos/virtual_keyboard/inputview/test_base.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698