Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: blimp/test/data/input.html

Issue 2393043004: Blimp: IME should submit form with text (Closed)
Patch Set: Added unit tests and browser test Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698