Bug 1317102 - Part 5: Increase the max grid highlighters shown to 3. r=pbro

This commit is contained in:
Gabriel Luong 2018-10-08 12:29:09 -04:00
Родитель 229b14cdfe
Коммит c2b5578464
4 изменённых файлов: 4 добавлений и 1 удалений

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

@ -22,6 +22,7 @@ const TEST_URI = `
`;
add_task(async function() {
await pushPref("devtools.gridinspector.maxHighlighters", 1);
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
const { inspector, gridInspector, testActor } = await openLayoutView();
const { document: doc } = gridInspector;

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

@ -23,6 +23,7 @@ const TEST_URI = `
`;
add_task(async function() {
await pushPref("devtools.gridinspector.maxHighlighters", 1);
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
const { inspector, gridInspector } = await openLayoutView();
const { document: doc } = gridInspector;

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

@ -23,6 +23,7 @@ const TEST_URI = `
`;
add_task(async function() {
await pushPref("devtools.gridinspector.maxHighlighters", 1);
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
const {inspector, view} = await openRuleView();
const highlighters = view.highlighters;

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

@ -74,7 +74,7 @@ pref("devtools.gridinspector.showGridAreas", false);
pref("devtools.gridinspector.showGridLineNumbers", false);
pref("devtools.gridinspector.showInfiniteLines", false);
// Max number of grid highlighters that can be displayed
pref("devtools.gridinspector.maxHighlighters", 1);
pref("devtools.gridinspector.maxHighlighters", 3);
// Whether or not the box model panel is opened in the layout view
pref("devtools.layout.boxmodel.opened", true);