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..c0ba7760ccc79a6a696ec3e7df849985176c91d4 |
| --- /dev/null |
| +++ b/chrome/test/data/chromeos/virtual_keyboard/end_to_end_test.html |
| @@ -0,0 +1,31 @@ |
| +<html> |
|
kevers
2013/11/22 18:50:50
Add <!DOCTYPE HTML> before <html> tag
rsadam
2013/11/25 15:21:02
Done.
|
| +<!-- |
| +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. |
| +--> |
| +<head> |
| + <title>Check if Virtual Keyboard works</title> |
| +</head> |
| +<body> |
| + <input id='input' type='text'/> |
| +</body> |
| +<script type="text/javascript"> |
|
kevers
2013/11/22 18:50:50
omit type attribute for script.
rsadam
2013/11/25 15:21:02
Done.
|
| + 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() { |
|
kevers
2013/11/22 18:50:50
nit: Space before =
rsadam
2013/11/25 15:21:02
Done.
|
| + verifyInput(char); |
| + }; |
| + } |
| +</script> |
| +</html> |