Chromium Code Reviews| 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..226c43f0334fa71c6aa31cc0bac0103b947b3cfc |
| --- /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 if Virtual Keyboard works</title> |
|
miket_OOO
2013/12/03 17:20:27
should be whether, not if, if you want to be absol
rsadam
2013/12/03 18:57:27
Done.
|
| +</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); |
| + } |
|
miket_OOO
2013/12/03 17:20:27
Be consistent about semicolon after var something
rsadam
2013/12/03 18:57:27
Done.
|
| + |
| + var waitForInput = function(char) { |
| + input.oninput = function() { |
| + verifyInput(char); |
| + }; |
| + } |
| +</script> |
| +</html> |