Bug 1447259: Change the tested animation in browser_animation_summary-graph_computed-timing-path_different-timescale.js test since the animation can intermittently already be finished during selectNodeAndWaitForAnimations. r=gl
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Tue, 03 Apr 2018 10:29:12 +0900
changeset 776433 77e268b40ed67108c24f9df1f14e70e7f3f4af9a
parent 776418 aa0ba213a294bda5ef568a44b6bd4589898b3ae7
child 776434 530e506ed011ac031bf1652f48b2f09d99b0567a
child 776440 6cfc7515faf587ee0dfe03377d9529c461ad4ae2
child 776477 d75d996016dcf325c2db2ed8a47af512d07ffacd
child 776490 554acd814741bf777b6312b027fb9108c97d0c1b
push id104881
push userbmo:dakatsuka@mozilla.com
push dateTue, 03 Apr 2018 03:22:58 +0000
reviewersgl
bugs1447259
milestone61.0a1
Bug 1447259: Change the tested animation in browser_animation_summary-graph_computed-timing-path_different-timescale.js test since the animation can intermittently already be finished during selectNodeAndWaitForAnimations. r=gl
devtools/client/inspector/animation/test/browser_animation_summary-graph_computed-timing-path_different-timescale.js
--- a/devtools/client/inspector/animation/test/browser_animation_summary-graph_computed-timing-path_different-timescale.js
+++ b/devtools/client/inspector/animation/test/browser_animation_summary-graph_computed-timing-path_different-timescale.js
@@ -5,19 +5,19 @@
 
 // Test the Computed Timing Path component for different time scales.
 
 add_task(async function() {
   await addTab(URL_ROOT + "doc_simple_animation.html");
   const { inspector, panel } = await openAnimationInspector();
 
   info("Checking the path for different time scale");
-  await selectNodeAndWaitForAnimations(".no-compositor", inspector);
+  await selectNodeAndWaitForAnimations(".animated", inspector);
   const pathStringA = panel.querySelector(".animation-iteration-path").getAttribute("d");
 
   info("Select animation which has different time scale from no-compositor");
-  await selectNodeAndWaitForAnimations(".endDelayed", inspector);
+  await selectNodeAndWaitForAnimations("#endDelayed", inspector);
 
   info("Select no-compositor again");
-  await selectNodeAndWaitForAnimations(".no-compositor", inspector);
+  await selectNodeAndWaitForAnimations(".animated", inspector);
   const pathStringB = panel.querySelector(".animation-iteration-path").getAttribute("d");
   is(pathStringA, pathStringB, "Path string should be same even change the time scale");
 });