| Index: chrome/test/data/chromeos/virtual_keyboard/inputs.html
|
| diff --git a/chrome/test/data/chromeos/virtual_keyboard/inputs.html b/chrome/test/data/chromeos/virtual_keyboard/inputs.html
|
| index e3eff1aa7043f2216cb361b16bfb0b6788658c8e..6df057c1ce97323da8db65b0c24ec6938c45c061 100644
|
| --- a/chrome/test/data/chromeos/virtual_keyboard/inputs.html
|
| +++ b/chrome/test/data/chromeos/virtual_keyboard/inputs.html
|
| @@ -4,11 +4,26 @@
|
| <meta charset="utf-8">
|
| <meta name="viewport" content="width-device-width">
|
| <title>Virtual Keyboard test page</title>
|
| + <script>
|
| +function syncFocus() {
|
| + var input = document.getElementById('text');
|
| + input.focus();
|
| +}
|
| +function asyncFocus() {
|
| + var input = document.getElementById('text');
|
| + setTimeout(function() {
|
| + input.focus();
|
| + }, 0);
|
| +}
|
| + </script>
|
| </head>
|
| <body>
|
| <p>
|
| <label id="blur">blur</label>
|
| <input id="text" type="text" placeholder="type=text"></input>
|
| + <!-- test for crbug.com/642513 -->
|
| + <button id="sync" onclick="syncFocus()">sync</button>
|
| + <button id="async" onclick="asyncFocus()">async</button>
|
| </p>
|
| </body>
|
| </html>
|
|
|