Index: test/inspector/debugger/call-frame-function-location.js |
diff --git a/test/inspector/debugger/call-frame-function-location.js b/test/inspector/debugger/call-frame-function-location.js |
index 3a5b25293b454bcb9ab2dc901a29bb573a15d7b6..c91164a037bf0ea10c332b8e1797d95870ceccd3 100644 |
--- a/test/inspector/debugger/call-frame-function-location.js |
+++ b/test/inspector/debugger/call-frame-function-location.js |
@@ -2,16 +2,16 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-InspectorTest.evaluateInPage( |
+InspectorTest.addScript( |
`function testFunction() |
{ |
var a = 2; |
debugger; |
}`); |
-InspectorTest.sendCommand("Debugger.enable", {}); |
-InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPaused; |
-InspectorTest.sendCommand("Runtime.evaluate", { "expression": "setTimeout(testFunction, 0)" }); |
+Protocol.Debugger.enable(); |
+Protocol.Debugger.oncePaused().then(handleDebuggerPaused); |
+Protocol.Runtime.evaluate({ "expression": "setTimeout(testFunction, 0)" }); |
function handleDebuggerPaused(messageObject) |
{ |