Index: test/inspector/runtime/console-api-repeated-in-console.js |
diff --git a/test/inspector/runtime/console-api-repeated-in-console.js b/test/inspector/runtime/console-api-repeated-in-console.js |
index 560988c7d1070dfd40c4186d8f7da7208182efeb..ec4b34d8adf019b60e3d813c1d8a1d97d91ef390 100644 |
--- a/test/inspector/runtime/console-api-repeated-in-console.js |
+++ b/test/inspector/runtime/console-api-repeated-in-console.js |
@@ -7,12 +7,12 @@ print("Check that console.log is reported through Console domain as well."); |
var expectedMessages = 4; |
var messages = []; |
-InspectorTest.eventHandler["Runtime.consoleAPICalled"] = consoleAPICalled; |
-InspectorTest.eventHandler["Console.messageAdded"] = messageAdded; |
-InspectorTest.sendCommandOrDie("Runtime.enable", {}); |
-InspectorTest.sendCommandOrDie("Console.enable", {}); |
-InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "console.log(42)" }); |
-InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "console.error('abc')" }); |
+Protocol.Runtime.onConsoleAPICalled(consoleAPICalled); |
+Protocol.Console.onMessageAdded(messageAdded); |
+Protocol.Runtime.enable(); |
+Protocol.Console.enable(); |
+Protocol.Runtime.evaluate({ "expression": "console.log(42)" }); |
+Protocol.Runtime.evaluate({ "expression": "console.error('abc')" }); |
function consoleAPICalled(result) |
{ |