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

Commit 98549fb

Browse files
committed
Fixup console pretty print test (#5689)
* Fixup console pretty print test * Make selectSource more paranoid
1 parent 5784733 commit 98549fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/test/mochitest/browser_dbg-preview-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ add_task(async function() {
1010
navigate(dbg, "doc-on-load.html");
1111

1212
// wait for `top-level.js` to load and to pause at a debugger statement
13-
await waitForSelectedSource(dbg);
13+
await waitForSelectedSource(dbg, "top-level.js");
1414
await waitForPaused(dbg);
1515

1616
const popupPreviewed = waitForDispatch(dbg, "SET_PREVIEW");

src/test/mochitest/browser_dbg-reload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ async function waitForBreakpoint(dbg, location) {
1919

2020
add_task(async function() {
2121
const dbg = await initDebugger("reload/doc-reload.html");
22+
2223
await waitForSource(dbg, "sjs_code_reload");
2324
await selectSource(dbg, "sjs_code_reload");
2425
await addBreakpoint(dbg, "sjs_code_reload", 2);

0 commit comments

Comments
 (0)