summaryrefslogtreecommitdiffstats
path: root/devtools
diff options
context:
space:
mode:
Diffstat (limited to 'devtools')
-rw-r--r--devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js17
1 files changed, 14 insertions, 3 deletions
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) {