OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <script> | 2 <script> |
3 | 3 |
4 window.onload = function() { | 4 window.onload = function() { |
| 5 var form = document.getElementById('form'); |
5 var input = document.getElementById('input'); | 6 var input = document.getElementById('input'); |
6 | 7 |
7 input.oninput = function() { | 8 input.oninput = function() { |
8 document.title = this.value; | 9 document.title = this.value; |
9 }; | 10 }; |
10 | 11 |
11 // Should trigger IME dialog on a tap event. | 12 // Should trigger IME dialog on a tap event. |
12 document.onclick = function() { | 13 document.onclick = function() { |
13 input.focus(); | 14 input.focus(); |
14 }; | 15 }; |
| 16 |
| 17 form.onsubmit = function() { |
| 18 window.domAutomationController.setAutomationId(0); |
| 19 window.domAutomationController.send("Submitted"); |
| 20 }; |
15 }; | 21 }; |
16 | 22 |
17 </script> | 23 </script> |
18 <input type="text" id="input"> | 24 <form id="form"> |
| 25 <input type="text" id="input"> |
| 26 </form> |
OLD | NEW |