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

Commit ffb2e34

Browse files
juliandescottesjasonLaster
authored andcommitted
Use pushPref helper in mochitests to set temporary pref values (#5128)
1 parent eb0290a commit ffb2e34

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/test/mochitest/browser_dbg-minified.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ function getScopeNodeValue(dbg, index) {
1616
}
1717

1818
add_task(async function() {
19+
await pushPref("devtools.debugger.features.map-scopes", true);
20+
1921
const dbg = await initDebugger("doc-minified2.html");
2022

2123
await waitForSources(dbg, "sum.js");

src/test/mochitest/browser_dbg-sourcemaps3.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ async function waitForScopeNode(dbg, index) {
2525
add_task(async function() {
2626
// NOTE: the CORS call makes the test run times inconsistent
2727
requestLongerTimeout(2);
28+
await pushPref("devtools.debugger.features.map-scopes", true);
2829

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

0 commit comments

Comments
 (0)