Bug 1449625 - Part 2: Turn on new animation inspector for beta tests. r=gl

This commit is contained in:
Daisuke Akatsuka 2018-04-03 08:36:00 +09:00
Родитель d7f7c75314
Коммит b4fc01f3cb
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -15,10 +15,14 @@ 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");
});