Bug 1439846: Add requestLongerTimeout to browser_animation_animation-detail_visibility. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Mon, 05 Mar 2018 10:54:35 +0900
changeset 763028 7027cf868045688b72d061359a22009ffa07c730
parent 762291 5410375734d6ca8be3ff06acdc1c951d87d644ee
push id101313
push userbmo:dakatsuka@mozilla.com
push dateMon, 05 Mar 2018 01:55:19 +0000
reviewersgl
bugs1439846
milestone60.0a1
Bug 1439846: Add requestLongerTimeout to browser_animation_animation-detail_visibility. r?gl MozReview-Commit-ID: EnbiA2LbkZL
devtools/client/inspector/animation/test/browser_animation_animation-detail_visibility.js
--- a/devtools/client/inspector/animation/test/browser_animation_animation-detail_visibility.js
+++ b/devtools/client/inspector/animation/test/browser_animation_animation-detail_visibility.js
@@ -1,33 +1,33 @@
 /* Any copyright is dedicated to the Public Domain.
    http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 // Test that whether animations detail could be displayed if there is selected animation.
 
+requestLongerTimeout(2);
+
 add_task(async function () {
   await addTab(URL_ROOT + "doc_multi_timings.html");
   const { animationInspector, inspector, panel } = await openAnimationInspector();
 
   info("Checking animation detail visibility if animation was unselected");
   const detailEl = panel.querySelector("#animation-container .controlled");
   ok(detailEl, "The detail pane should be in the DOM");
   const win = panel.ownerGlobal;
   is(win.getComputedStyle(detailEl).display, "none", "detailEl should be unvisibled");
 
   info("Checking animation detail visibility if animation was selected by click");
   await clickOnAnimation(animationInspector, panel, 0);
   isnot(win.getComputedStyle(detailEl).display, "none", "detailEl should be visibled");
 
   info("Checking animation detail visibility when choose node which has animations");
-  const htmlNode = await getNodeFront("html", inspector);
-  await selectNodeAndWaitForAnimations(htmlNode, inspector);
+  await selectNodeAndWaitForAnimations("html", inspector);
   is(win.getComputedStyle(detailEl).display, "none",
-     "detailEl should be unvisibled after choose html node");
+    "detailEl should be unvisibled after choose html node");
 
   info("Checking animation detail visibility when choose node which has an animation");
-  const animatedNode = await getNodeFront(".cssanimation-normal", inspector);
-  await selectNodeAndWaitForAnimations(animatedNode, inspector);
+  await selectNodeAndWaitForAnimations(".cssanimation-normal", inspector);
   isnot(win.getComputedStyle(detailEl).display, "none",
-        "detailEl should be visibled after choose .cssanimation-normal node");
+    "detailEl should be visibled after choose .cssanimation-normal node");
 });