Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created August 7, 2019 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonLaster/1eb20bcc80ba90392646dc8c4e008024 to your computer and use it in GitHub Desktop.
Save jasonLaster/1eb20bcc80ba90392646dc8c4e008024 to your computer and use it in GitHub Desktop.
diff --git a/devtools/client/debugger/test/mochitest/browser_dbg-expressions.js b/devtools/client/debugger/test/mochitest/browser_dbg-expressions.js
index ff8c2f04b2cb..e795a327223c 100644
--- a/devtools/client/debugger/test/mochitest/browser_dbg-expressions.js
+++ b/devtools/client/debugger/test/mochitest/browser_dbg-expressions.js
@@ -30,17 +30,25 @@ function assertEmptyValue(dbg, index) {
add_task(async function() {
const dbg = await initDebugger("doc-script-switching.html");
+ const { getExpression } = dbg.selectors;
invokeInTab("firstCall");
await waitForPaused(dbg);
await addExpression(dbg, "f");
+
is(getLabel(dbg, 1), "f");
is(getValue(dbg, 1), "(unavailable)");
await editExpression(dbg, "oo");
+ await waitForState(
+ dbg,
+ () => getExpression("foo").value.result.displayName == "foo"
+ )
+
is(getLabel(dbg, 1), "foo()");
+
// There is no "value" element for functions.
assertEmptyValue(dbg, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment