Bug 1132783 - Fix the init sequence of animationinspector tests to avoid intermittents. r=bgrins
authorPatrick Brosset <pbrosset@mozilla.com>
Fri, 13 Feb 2015 05:41:00 -0500
changeset 229030 248aac04b9d85ecbab43fbfce134211f468e96ab
parent 229029 9dde2d05baa7f0ffff680696cd9362fd719d8caf
child 229031 ae0ae6c0e1ad36ec9bfd4936eeff1fcb4b42b791
push id28280
push usercbook@mozilla.com
push dateMon, 16 Feb 2015 14:48:41 +0000
treeherdermozilla-central@2a6a0c025c7b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1132783
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1132783 - Fix the init sequence of animationinspector tests to avoid intermittents. r=bgrins CLOSED TREE
browser/devtools/animationinspector/test/head.js
--- a/browser/devtools/animationinspector/test/head.js
+++ b/browser/devtools/animationinspector/test/head.js
@@ -154,17 +154,22 @@ let openAnimationInspector = Task.async(
   inspector.sidebar.select("animationinspector");
 
   info("Waiting for the inspector and sidebar to be ready");
   yield promise.all(initPromises);
 
   let win = inspector.sidebar.getWindowForTab("animationinspector");
   let {AnimationsController, AnimationsPanel} = win;
 
-  yield AnimationsPanel.once(AnimationsPanel.PANEL_INITIALIZED);
+  info("Waiting for the animation controller and panel to be ready");
+  if (AnimationsPanel.initialized) {
+    yield AnimationsPanel.initialized;
+  } else {
+    yield AnimationsPanel.once(AnimationsPanel.PANEL_INITIALIZED);
+  }
 
   return {
     toolbox: toolbox,
     inspector: inspector,
     controller: AnimationsController,
     panel: AnimationsPanel,
     window: win
   };