Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-dir-global.html

Issue 2899163002: DevTools: Promisify Runtime domain (Closed)
Patch Set: addressing comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/console/console-dir-global.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-dir-global.html b/third_party/WebKit/LayoutTests/inspector/console/console-dir-global.html
index 71ae9ef45311734e33ff5a14929b859f6e511e67..c3ce2fa5f9230333e4c4301591db5be6c50492d1 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-dir-global.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-dir-global.html
@@ -12,12 +12,12 @@ function doit()
function test()
{
- InspectorTest.RuntimeAgent.evaluate("window", "console", false, evalCallback);
+ InspectorTest.RuntimeAgent.evaluate("window", "console", false).then(evalCallback);
- function evalCallback(error, result)
+ function evalCallback(result)
{
- if (error) {
- testController.notifyDone("Exception:" + error);
+ if (!result) {
+ testController.notifyDone("Exception");
return;
}
if (result.type === "error")

Powered by Google App Engine
This is Rietveld 408576698