From 6e8227fd30b7c6e17fb6f5513d3a374bad860d00 Mon Sep 17 00:00:00 2001 From: Tim Chien Date: Wed, 27 Aug 2014 03:21:00 -0400 Subject: [PATCH] Bug 1057898 - Add a test for tapping between two inputs. r=yxl --- dom/inputmethod/mochitest/mochitest.ini | 1 + .../test_delete_focused_element.html | 5 +- .../mochitest/test_two_inputs.html | 106 ++++++++++++++++++ 3 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 dom/inputmethod/mochitest/test_two_inputs.html diff --git a/dom/inputmethod/mochitest/mochitest.ini b/dom/inputmethod/mochitest/mochitest.ini index 9e6de6b7f6b95..b68912b15a68e 100644 --- a/dom/inputmethod/mochitest/mochitest.ini +++ b/dom/inputmethod/mochitest/mochitest.ini @@ -19,3 +19,4 @@ support-files = [test_bug1043828.html] [test_delete_focused_element.html] [test_sendkey_cancel.html] +[test_two_inputs.html] diff --git a/dom/inputmethod/mochitest/test_delete_focused_element.html b/dom/inputmethod/mochitest/test_delete_focused_element.html index e8d85290438e9..82a7fff99886c 100644 --- a/dom/inputmethod/mochitest/test_delete_focused_element.html +++ b/dom/inputmethod/mochitest/test_delete_focused_element.html @@ -34,7 +34,10 @@ }; content.setTimeout(function() { - textarea.focus(); + content.setTimeout(function() { + textarea.focus(); + }, 10); + input.parentNode.removeChild(input); }, 0); } diff --git a/dom/inputmethod/mochitest/test_two_inputs.html b/dom/inputmethod/mochitest/test_two_inputs.html new file mode 100644 index 0000000000000..8e3bbdd7bd393 --- /dev/null +++ b/dom/inputmethod/mochitest/test_two_inputs.html @@ -0,0 +1,106 @@ + + + + + Test switching between two inputs + + + + + +Mozilla Bug 932145 +

+
+
+
+ + +