| 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 75%
|
| 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..9bc10e359a8c8e65e649ba6631a91f0f16842354 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,18 +17,18 @@ function test()
|
| {
|
| var cb;
|
| var p = new Promise((resolver) => cb = resolver);
|
| - InspectorTest.eventHandler["Console.messageAdded"] = (messageObject) => cb(messageObject);
|
| + InspectorTest.eventHandler["Runtime.consoleAPICalled"] = (messageObject) => cb(messageObject);
|
| InspectorTest.sendCommand("Runtime.evaluate", { expression: expression });
|
| return p;
|
| }
|
|
|
| function dumpMessage(messageObject)
|
| {
|
| - var msg = messageObject.params.message;
|
| + var msg = messageObject.params;
|
| delete msg.executionContextId;
|
| - delete msg.parameters;
|
| + delete msg.args;
|
| delete msg.timestamp;
|
| - for (var frame of msg.stack.callFrames)
|
| + for (var frame of msg.stackTrace.callFrames)
|
| frame.scriptId = 0;
|
| InspectorTest.logObject(msg);
|
| }
|
| @@ -39,3 +39,4 @@ function test()
|
| <body onload="runTest()">
|
| </body>
|
| </html>
|
| +
|
|
|