Bug 1822568 - [devtools] Fix browser_dbg-pretty-print-breakpoints-columns.js intermittent. r=devtools-reviewers,bomsy.

Differential Revision: https://phabricator.services.mozilla.com/D172980
This commit is contained in:
Nicolas Chevobbe 2023-03-20 10:02:50 +00:00
parent 0acabc0198
commit 56579ac82d

View file

@ -48,6 +48,7 @@ add_task(async function() {
info("We pause on the first column breakpoint (before `i` init)"); info("We pause on the first column breakpoint (before `i` init)");
await waitForPaused(dbg); await waitForPaused(dbg);
await waitForInlinePreviews(dbg);
await assertPausedAtSourceAndLine( await assertPausedAtSourceAndLine(
dbg, dbg,
prettySource.id, prettySource.id,
@ -60,6 +61,7 @@ add_task(async function() {
"We pause at the second column breakpoint, before the first loop iteration" "We pause at the second column breakpoint, before the first loop iteration"
); );
await waitForPaused(dbg); await waitForPaused(dbg);
await waitForInlinePreviews(dbg);
await assertPausedAtSourceAndLine( await assertPausedAtSourceAndLine(
dbg, dbg,
prettySource.id, prettySource.id,
@ -82,6 +84,7 @@ add_task(async function() {
"We pause at the second column breakpoint, before the second loop iteration" "We pause at the second column breakpoint, before the second loop iteration"
); );
await waitForPaused(dbg); await waitForPaused(dbg);
await waitForInlinePreviews(dbg);
await assertPausedAtSourceAndLine( await assertPausedAtSourceAndLine(
dbg, dbg,
prettySource.id, prettySource.id,
@ -95,6 +98,7 @@ add_task(async function() {
"We pause at the second column breakpoint, before we exit the loop (`items.length` is 2, so the condition will fail)" "We pause at the second column breakpoint, before we exit the loop (`items.length` is 2, so the condition will fail)"
); );
await waitForPaused(dbg); await waitForPaused(dbg);
await waitForInlinePreviews(dbg);
await assertPausedAtSourceAndLine( await assertPausedAtSourceAndLine(
dbg, dbg,
prettySource.id, prettySource.id,