Index: test/inspector/cpu-profiler/stop-without-preceeding-start.js |
diff --git a/test/inspector/cpu-profiler/stop-without-preceeding-start.js b/test/inspector/cpu-profiler/stop-without-preceeding-start.js |
index ae232ba22190146637462da98599874a47c016aa..3e4717a19c89892060d4f873cb189d4a283c697d 100644 |
--- a/test/inspector/cpu-profiler/stop-without-preceeding-start.js |
+++ b/test/inspector/cpu-profiler/stop-without-preceeding-start.js |
@@ -4,7 +4,7 @@ |
print("Test that profiler doesn't crash when we call stop without preceeding start."); |
-InspectorTest.sendCommand("Profiler.stop", {}, didStopProfile); |
+Protocol.Profiler.stop().then(didStopProfile); |
function didStopProfile(messageObject) |
{ |
InspectorTest.expectedError("ProfileAgent.stop", messageObject); |