Bug 1445825: Enable new animation inspector in nightly. r=gl

MozReview-Commit-ID: LrjeVNrzsGe

--HG--
extra : rebase_source : 71ab562a92a5765bb32e9b66e93eb9ee45b470b5
This commit is contained in:
Daisuke Akatsuka 2018-03-26 17:00:39 +09:00
Родитель e5134dc41c
Коммит f19d361797
4 изменённых файлов: 16 добавлений и 7 удалений

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

@ -25,9 +25,13 @@ registerCleanupFunction(async function() {
}
});
// Disable new animation inspector.
Services.prefs.setBoolPref("devtools.new-animationinspector.enabled", false);
// 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.debugger.log");
});

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

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

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

@ -55,14 +55,19 @@ add_task(async function() {
info("Click on the animation inspector tab");
let onHighlighterHidden = toolbox.once("node-unhighlight");
let onTabInspectorSelected = inspector.sidebar.once("animationinspector-selected");
let animationInspectorTab = inspector.panelDoc.querySelector("#animationinspector-tab");
let onTabInspectorSelected = inspector.sidebar.once("newanimationinspector-selected");
let onInspectorUpdated = inspector.once("inspector-updated");
let animationInspectorTab =
inspector.panelDoc.querySelector("#newanimationinspector-tab");
EventUtils.synthesizeMouseAtCenter(animationInspectorTab, {},
inspector.panelDoc.defaultView);
await onTabInspectorSelected;
info("animation inspector was selected");
await onInspectorUpdated;
info("animation inspector was updated");
await onHighlighterHidden;
info("box model highlighter hidden after moving the mouse out of the markup view");
});

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

@ -72,8 +72,12 @@ pref("devtools.changesview.enabled", false);
pref("devtools.eventsview.enabled", false);
// Enable the Flexbox Inspector panel
pref("devtools.flexboxinspector.enabled", false);
// Enable the new Animation Inspector
// Enable the new Animation Inspector in Nightly only
#if defined(NIGHTLY_BUILD)
pref("devtools.new-animationinspector.enabled", true);
#else
pref("devtools.new-animationinspector.enabled", false);
#endif
// Enable the Variable Fonts editor
pref("devtools.inspector.fonteditor.enabled", false);