Bug 1066515 - Part 3: Finalize active inputmethod when mochitest finish. r=yxl
authorTing-Yu Chou <janus926@gmail.com>
Thu, 09 Oct 2014 11:05:51 +0800
changeset 209579 78627d76c4ecaaf1c78e2dec92ded6e035883bed
parent 209578 986b480432804bee64cb9c8bd75bb01f22ade9c8
child 209580 9bdba7a66515c4a620e296e89c9c00814a795b6e
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersyxl
bugs1066515
milestone35.0a1
Bug 1066515 - Part 3: Finalize active inputmethod when mochitest finish. r=yxl
dom/inputmethod/mochitest/inputmethod_common.js
--- a/dom/inputmethod/mochitest/inputmethod_common.js
+++ b/dom/inputmethod/mochitest/inputmethod_common.js
@@ -26,10 +26,11 @@ function inputmethod_setup(callback) {
     ];
     SpecialPowers.pushPrefEnv({set: prefs}, function() {
       SimpleTest.waitForFocus(callback);
     });
   });
 }
 
 function inputmethod_cleanup() {
+  SpecialPowers.wrap(navigator.mozInputMethod).setActive(false);
   SimpleTest.finish();
 }