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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html

Issue 2139543002: [DevTools] Report console API calls through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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-protocol/runtime/runtime-console-memory.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html
index bf9439def9ff1b3bd44f4f6b27c3f51f7590e655..a68be220202ec0862a4bb64c93412e6c64373555 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-memory.html
@@ -18,14 +18,14 @@ function dumpInnerHtml()
function test()
{
- InspectorTest.sendCommandOrDie("Console.enable", {});
- InspectorTest.eventHandler["Console.messageAdded"] = dumpMessageAndCompleTest;
+ InspectorTest.sendCommandOrDie("Runtime.enable", {});
+ InspectorTest.eventHandler["Runtime.consoleAPICalled"] = dumpMessageAndCompleTest;
InspectorTest.sendCommand("Runtime.evaluate", { "expression": "dumpInnerHtml()" });
function dumpMessageAndCompleTest(result)
{
InspectorTest.log("=== Dump console message ===");
- InspectorTest.log(result.params.message.text);
+ InspectorTest.log(result.params.args[0].value);
InspectorTest.completeTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698