From 520a92573ce79e3628762e4ce06e284d50c2e548 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 21 May 2024 07:21:19 +0200 Subject: Merging upstream version 115.11.0esr. Signed-off-by: Daniel Baumann --- .../debugger/test/mochitest/browser_dbg-call-stack.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'devtools') diff --git a/devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js b/devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js index 6b557cb24f..4d8720d395 100644 --- a/devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js +++ b/devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js @@ -19,6 +19,8 @@ add_task(async function () { const button = toggleButton(dbg); ok(!button, "toggle button shouldn't be there"); + + await resume(dbg); }); add_task(async function () { @@ -53,9 +55,13 @@ add_task(async function () { const found = findElement(dbg, "callStackBody"); is(found, null, "Call stack is hidden"); - SpecialPowers.spawn(gBrowser.selectedBrowser, [], function () { - content.document.querySelector("button.pause").click(); - }); + const pausedContent = SpecialPowers.spawn( + gBrowser.selectedBrowser, + [], + function () { + content.document.querySelector("button.pause").click(); + } + ); await waitForPaused(dbg); const $group = findElementWithSelector(dbg, ".frames .frames-group"); @@ -69,6 +75,11 @@ add_task(async function () { "Angular", "Group has expected location" ); + + await resume(dbg); + + info("Wait for content to be resumed"); + await pausedContent; }); function toggleButton(dbg) { -- cgit v1.2.3