Index: test/inspector/runtime/console-deprecated-methods.js |
diff --git a/test/inspector/runtime/console-deprecated-methods.js b/test/inspector/runtime/console-deprecated-methods.js |
index a33c2e75ae1870d91bcc6ff48021d111e5af4e14..2705cb083f4620ed76d0bcf6849e13d68f7efdb6 100644 |
--- a/test/inspector/runtime/console-deprecated-methods.js |
+++ b/test/inspector/runtime/console-deprecated-methods.js |
@@ -4,8 +4,8 @@ |
print("Tests checks that deprecation messages for console.") |
-InspectorTest.eventHandler["Runtime.consoleAPICalled"] = messageAdded; |
-InspectorTest.sendCommand("Runtime.enable", {}); |
+Protocol.Runtime.onConsoleAPICalled(messageAdded); |
+Protocol.Runtime.enable(); |
var deprecatedMethods = [ |
"console.timeline(\"42\")", |
@@ -14,7 +14,7 @@ var deprecatedMethods = [ |
"console.timelineEnd(\"42\")", |
"console.markTimeline(\"42\")", |
]; |
-InspectorTest.sendCommand("Runtime.evaluate", { expression: deprecatedMethods.join(";") }); |
+Protocol.Runtime.evaluate({ expression: deprecatedMethods.join(";") }); |
var messagesLeft = 3; |
function messageAdded(data) |