Created
August 7, 2019 16:18
-
-
Save jasonLaster/1eb20bcc80ba90392646dc8c4e008024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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