Bug 1219872 - Fix animationinspector permafail on beta by turning on dom.animations-api.core.enabled;r=birtles,a=bustage on CLOSED TREE
authorBrian Grinstead <bgrinstead@mozilla.com>
Thu, 29 Oct 2015 16:20:47 -0700
changeset 298316 065abb91e10aa256f8ebaf2f1ef96ad9043e1bea
parent 298315 d11e8e2e9425c34bcb04a8fc9479afdab07c9fb6
child 298317 dde0e0b495db5de8970cfbaf7ed3dbd24b62c295
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles, bustage
bugs1219872
milestone43.0
Bug 1219872 - Fix animationinspector permafail on beta by turning on dom.animations-api.core.enabled;r=birtles,a=bustage on CLOSED TREE
browser/devtools/animationinspector/test/browser_animation_timeline_takes_rate_into_account.js
--- a/browser/devtools/animationinspector/test/browser_animation_timeline_takes_rate_into_account.js
+++ b/browser/devtools/animationinspector/test/browser_animation_timeline_takes_rate_into_account.js
@@ -7,16 +7,22 @@
 // Check that if an animation has had its playbackRate changed via the DOM, then
 // the timeline UI shows the right delay and duration.
 // Indeed, the header in the timeline UI always shows the unaltered time,
 // because there might be multiple animations displayed at the same time, some
 // of which may have a different rate than others. Those that have had their
 // rate changed have a delay = delay/rate and a duration = duration/rate.
 
 add_task(function*() {
+  yield new Promise(resolve => {
+    SpecialPowers.pushPrefEnv({"set": [
+      ["dom.animations-api.core.enabled", true]
+    ]}, resolve);
+  });
+
   yield addTab(TEST_URL_ROOT + "doc_modify_playbackRate.html");
 
   let {panel} = yield openAnimationInspector();
 
   let timelineEl = panel.animationsTimelineComponent.rootWrapperEl;
 
   let timeBlocks = timelineEl.querySelectorAll(".time-block");
   is(timeBlocks.length, 2, "2 animations are displayed");