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