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

Unified Diff: chrome/test/data/chromeos/virtual_keyboard/end_to_end_test.html

Issue 83483004: End to End browser test for the virtual keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api-tests
Patch Set: Fixed nits. Created 7 years 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: chrome/test/data/chromeos/virtual_keyboard/end_to_end_test.html
diff --git a/chrome/test/data/chromeos/virtual_keyboard/end_to_end_test.html b/chrome/test/data/chromeos/virtual_keyboard/end_to_end_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..f18ee10afa956e4b1b8512b5e7770c6e3d756ccf
--- /dev/null
+++ b/chrome/test/data/chromeos/virtual_keyboard/end_to_end_test.html
@@ -0,0 +1,31 @@
+<!--
+Copyright 2013 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+<html>
+<head>
+ <title>Check whether the Virtual Keyboard works</title>
+</head>
+<body>
+ <input id='input' type='text'/>
+</body>
+<script>
+ var success = false;
+ var input = document.getElementById('input');
+ input.oninput = function() {
+ success = true;
+ };
+ input.focus();
+
+ var verifyInput = function(expected) {
+ window.domAutomationController.send(input.value == expected);
+ };
+
+ var waitForInput = function(char) {
+ input.oninput = function() {
+ verifyInput(char);
+ };
+ };
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698