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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/feature/engine_render_widget_feature.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/test/data/input.html
diff --git a/blimp/test/data/input.html b/blimp/test/data/input.html
index 6b80a10a4cc9723b63e06e026499b0947ed2cd73..f2fc1d9166746e162687be1a9e789705f76a3487 100644
--- a/blimp/test/data/input.html
+++ b/blimp/test/data/input.html
@@ -2,6 +2,7 @@
<script>
window.onload = function() {
+ var form = document.getElementById('form');
var input = document.getElementById('input');
input.oninput = function() {
@@ -12,7 +13,14 @@ window.onload = function() {
document.onclick = function() {
input.focus();
};
+
+ form.onsubmit = function() {
+ window.domAutomationController.setAutomationId(0);
+ window.domAutomationController.send("Submitted");
+ };
};
</script>
-<input type="text" id="input">
+<form id="form">
+ <input type="text" id="input">
+</form>
« 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