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

Commit

Permalink
test watch expressions w/ an active debuggee (#4066)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Sep 18, 2017
1 parent 311c434 commit fdbeb46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/mochitest/browser_dbg-expressions.js
Expand Up @@ -79,6 +79,15 @@ add_task(async function() {

await deleteExpression(dbg, "foo");
await deleteExpression(dbg, "location");
is(findAllElements(dbg, "expressionNodes").length, 0);

// Test expanding properties when the debuggee is active
await resume(dbg);
await addExpression(dbg, "location");
toggleExpression(dbg, 1);
await waitForDispatch(dbg, "LOAD_OBJECT_PROPERTIES");
is(findAllElements(dbg, "expressionNodes").length, 17);

await deleteExpression(dbg, "location");
is(findAllElements(dbg, "expressionNodes").length, 0);
});

0 comments on commit fdbeb46

Please sign in to comment.