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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-line-and-column.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-line-and-column.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-line-and-column.html
similarity index 83%
rename from third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html
rename to third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-line-and-column.html
index 53bef3dc648d18262b4669e4b157e6d9e72f5401..66892ddf67037f90cd462e5e24ea4fe618a9b377 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-line-and-column.html
@@ -5,7 +5,7 @@
function test()
{
- InspectorTest.sendCommand("Console.enable", {});
+ InspectorTest.sendCommand("Runtime.enable", {});
addConsoleMessagePromise("console.log(239)")
.then(dumpMessage)
@@ -17,7 +17,7 @@ function test()
{
var cb;
var p = new Promise((resolver) => cb = resolver);
- InspectorTest.eventHandler["Console.messageAdded"] = (messageObject) => cb(messageObject);
+ InspectorTest.eventHandler["Runtime.consoleAPICall"] = (messageObject) => cb(messageObject);
InspectorTest.sendCommand("Runtime.evaluate", { expression: expression });
return p;
}
@@ -26,7 +26,7 @@ function test()
{
var msg = messageObject.params.message;
delete msg.executionContextId;
- delete msg.parameters;
+ delete msg.callArguments;
delete msg.timestamp;
for (var frame of msg.stack.callFrames)
frame.scriptId = 0;
@@ -39,3 +39,4 @@ function test()
<body onload="runTest()">
</body>
</html>
+

Powered by Google App Engine
This is Rietveld 408576698