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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-deprecated-methods.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-deprecated-methods.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-deprecated-methods.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-deprecated-methods.html
similarity index 84%
rename from third_party/WebKit/LayoutTests/inspector-protocol/console/console-deprecated-methods.html
rename to third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-deprecated-methods.html
index fe6ef3f5b933d5e73f602cb1a32db79c7dcdc9a3..25587d2882cf74ef0a57e535173a805c6f341b1e 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-deprecated-methods.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-deprecated-methods.html
@@ -7,8 +7,8 @@ testRunner.setDumpConsoleMessages(false);
function test()
{
- InspectorTest.eventHandler["Console.messageAdded"] = messageAdded;
- InspectorTest.sendCommand("Console.enable", {});
+ InspectorTest.eventHandler["Runtime.consoleAPICalled"] = messageAdded;
+ InspectorTest.sendCommand("Runtime.enable", {});
var deprecatedMethods = [
"console.timeline(\"42\")",
@@ -22,7 +22,7 @@ function test()
var messagesLeft = 3;
function messageAdded(data)
{
- var text = data.params.message.text;
+ var text = data.params.args[0].value;
if (text.indexOf("deprecated") === -1)
return;
InspectorTest.log(text);
@@ -34,3 +34,4 @@ function test()
</head>
<body onload="runTest()">Tests checks that deprecation messages for console.</body>
</html>
+

Powered by Google App Engine
This is Rietveld 408576698