Bug 1449625 - Part 2: Turn on new animation inspector for beta tests. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Sat, 31 Mar 2018 08:45:52 +0900
changeset 775394 e3781f6dc974d0e7c8289d434bfadded161e6775
parent 775393 9fd7941ee54e7f57ad6ab26b1a07585357a9fdcc
child 775978 44341ef0daf6fe7b390464ba46c624e4e093705f
child 775979 488726d40843da9b7ab93c153930c10e06ec3b36
push id104708
push userbmo:dakatsuka@mozilla.com
push dateFri, 30 Mar 2018 23:46:58 +0000
reviewersgl
bugs1449625
milestone61.0a1
Bug 1449625 - Part 2: Turn on new animation inspector for beta tests. r?gl MozReview-Commit-ID: 5QtTgbGci05
devtools/client/inspector/animation/test/head.js
--- a/devtools/client/inspector/animation/test/head.js
+++ b/devtools/client/inspector/animation/test/head.js
@@ -10,20 +10,24 @@ Services.scriptloader.loadSubScript(
   "chrome://mochitests/content/browser/devtools/client/inspector/test/head.js", this);
 
 const FRAME_SCRIPT_URL = CHROME_URL_ROOT + "doc_frame_script.js";
 const TAB_NAME = "newanimationinspector";
 
 const ANIMATION_L10N =
   new LocalizationHelper("devtools/client/locales/animationinspector.properties");
 
+// Enable new animation inspector.
+Services.prefs.setBoolPref("devtools.new-animationinspector.enabled", true);
+
 // Auto clean-up when a test ends.
 // Clean-up all prefs that might have been changed during a test run
 // (safer here because if the test fails, then the pref is never reverted)
 registerCleanupFunction(() => {
+  Services.prefs.clearUserPref("devtools.new-animationinspector.enabled");
   Services.prefs.clearUserPref("devtools.toolsidebar-width.inspector");
 });
 
 /**
  * Open the toolbox, with the inspector tool visible and the animationinspector
  * sidebar selected.
  *
  * @return {Promise} that resolves when the inspector is ready.