Bug 1505747 - Reset flex overlay colors before testing them; r=gl

Differential Revision: https://phabricator.services.mozilla.com/D13680

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Patrick Brosset 2018-12-03 19:28:10 +00:00
parent 45794c41ea
commit 5df2db204f
2 changed files with 10 additions and 0 deletions

View File

@ -3,12 +3,17 @@
"use strict";
const asyncStorage = require("devtools/shared/async-storage");
// Test that the flexbox highlighter color change in the color picker is reverted when
// ESCAPE is pressed.
const TEST_URI = URL_ROOT + "doc_flexbox_specific_cases.html";
add_task(async function() {
// Make sure there are no custom highlighter colors stored before starting.
await asyncStorage.removeItem("flexboxInspectorHostColors");
await addTab(TEST_URI);
const { inspector, flexboxInspector, layoutView } = await openLayoutView();
const { document: doc } = flexboxInspector;

View File

@ -3,12 +3,17 @@
"use strict";
const asyncStorage = require("devtools/shared/async-storage");
// Test that the flexbox highlighter color change in the color picker is committed when
// RETURN is pressed.
const TEST_URI = URL_ROOT + "doc_flexbox_specific_cases.html";
add_task(async function() {
// Make sure there are no custom highlighter colors stored before starting.
await asyncStorage.removeItem("flexboxInspectorHostColors");
await addTab(TEST_URI);
const { inspector, flexboxInspector, layoutView } = await openLayoutView();
const { document: doc } = flexboxInspector;