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

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

Issue 2393043004: Blimp: IME should submit form with text (Closed)
Patch Set: dtrainor@ comments 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
« no previous file with comments | « blimp/engine/feature/engine_render_widget_feature.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « blimp/engine/feature/engine_render_widget_feature.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698