mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 1858937 - [devtools] Enable preference layout.css.text-wrap-balance.enabled in tests for inactive CSS in DevTools. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D190999
This commit is contained in:
parent
8c8ec43bc6
commit
5d03e54433
@ -15,13 +15,16 @@ SimpleTest.waitForExplicitFinish();
|
||||
|
||||
const INACTIVE_CSS_PREF = "devtools.inspector.inactive.css.enabled";
|
||||
const CUSTOM_HIGHLIGHT_API = "dom.customHighlightAPI.enabled";
|
||||
const TEXT_WRAP_BALANCE = "layout.css.text-wrap-balance.enabled";
|
||||
|
||||
Services.prefs.setBoolPref(INACTIVE_CSS_PREF, true);
|
||||
Services.prefs.setBoolPref(CUSTOM_HIGHLIGHT_API, true);
|
||||
Services.prefs.setBoolPref(TEXT_WRAP_BALANCE, true);
|
||||
|
||||
SimpleTest.registerCleanupFunction(() => {
|
||||
Services.prefs.clearUserPref(INACTIVE_CSS_PREF);
|
||||
Services.prefs.clearUserPref(CUSTOM_HIGHLIGHT_API);
|
||||
Services.prefs.clearUserPref(TEXT_WRAP_BALANCE);
|
||||
});
|
||||
|
||||
const FOLDER = "./inactive-property-helper";
|
||||
|
Loading…
x
Reference in New Issue
Block a user