Bug 1277657 Fix a race condition in devtools test helper_inline_editor.js. r=jdescottes
authorBen Kelly <ben@wanderview.com>
Mon, 22 May 2017 07:29:30 -0700
changeset 583062 91f8c767d03c5e5733695048bfcce907d0378973
parent 583061 d90c91b76b8ebc76805599e39bc6cec681260add
child 583063 dfa1a3fba07d9268b1a4b3850957bf706f8c9ee9
push id60286
push userbmo:rail@mozilla.com
push dateTue, 23 May 2017 17:21:06 +0000
reviewersjdescottes
bugs1277657
milestone55.0a1
Bug 1277657 Fix a race condition in devtools test helper_inline_editor.js. r=jdescottes
devtools/client/shared/test/helper_inplace_editor.js
--- a/devtools/client/shared/test/helper_inplace_editor.js
+++ b/devtools/client/shared/test/helper_inplace_editor.js
@@ -94,17 +94,17 @@ function* testCompletion([key, completio
     onSuggest = editor.once("after-suggest");
   }
 
   info("Synthesizing key " + key);
   EventUtils.synthesizeKey(key, {}, editor.input.defaultView);
 
   yield onSuggest;
   yield onVisibilityChange;
-  yield waitForTick();
+  yield waitForTime(5);
 
   info("Checking the state");
   if (completion !== null) {
     is(editor.input.value, completion, "Correct value is autocompleted");
   }
   if (total === 0) {
     ok(!(editor.popup && editor.popup.isOpen), "Popup is closed");
   } else {