Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Use pushPref helper in mochitests to set temporary pref values (#5128)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes authored and jasonLaster committed Feb 14, 2018
1 parent eb0290a commit ffb2e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/mochitest/browser_dbg-minified.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ function getScopeNodeValue(dbg, index) {
}

add_task(async function() {
await pushPref("devtools.debugger.features.map-scopes", true);

const dbg = await initDebugger("doc-minified2.html");

await waitForSources(dbg, "sum.js");
Expand Down
1 change: 1 addition & 0 deletions src/test/mochitest/browser_dbg-sourcemaps3.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async function waitForScopeNode(dbg, index) {
add_task(async function() {
// NOTE: the CORS call makes the test run times inconsistent
requestLongerTimeout(2);
await pushPref("devtools.debugger.features.map-scopes", true);

const dbg = await initDebugger("doc-sourcemaps3.html");
const { selectors: { getBreakpoint, getBreakpoints }, getState } = dbg;
Expand Down

0 comments on commit ffb2e34

Please sign in to comment.