Skip to content
Snippets Groups Projects
Commit 68c4239a authored by Alexandre Poirot's avatar Alexandre Poirot
Browse files

Bug 1824109 - [devtools] Wait for SpecialPowers task to be resumed before...

Bug 1824109 - [devtools] Wait for SpecialPowers task to be resumed before leaving the test. r=devtools-reviewers,nchevobbe a=test-only

Differential Revision: https://phabricator.services.mozilla.com/D198795
parent d91a605e
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,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 +73,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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment