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

Commit 47dd851

Browse files
committed
Fix failing mochitests (#5676)
1 parent 35c62bc commit 47dd851

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/test/mochitest/browser_dbg-pretty-print-console.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ add_task(async function() {
2323
info("Switch back to debugger and pretty-print");
2424
await toolbox.selectTool("jsdebugger");
2525
await selectSource(dbg, "math.min.js", 2);
26+
await waitForSelectedSource(dbg, "math.min.js");
27+
2628
clickElement(dbg, "prettyPrintButton");
2729

2830
await waitForSource(dbg, "math.min.js:formatted");

src/test/mochitest/browser_dbg-sourcemaps2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ add_task(async function() {
4545
// Tests the existence of the sourcemap link in the original source.
4646
ok(findElement(dbg, "sourceMapLink"), "Sourcemap link in original source");
4747
await selectSource(dbg, "main.min.js");
48+
await waitForSelectedSource(dbg, "main.min.js");
49+
4850
ok(
4951
!findElement(dbg, "sourceMapLink"),
5052
"No Sourcemap link exists in generated source"

0 commit comments

Comments
 (0)