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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ae232ba22190146637462da98599874a47c016aa |
--- /dev/null |
+++ b/test/inspector/cpu-profiler/stop-without-preceeding-start.js |
@@ -0,0 +1,12 @@ |
+// Copyright 2016 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+print("Test that profiler doesn't crash when we call stop without preceeding start."); |
+ |
+InspectorTest.sendCommand("Profiler.stop", {}, didStopProfile); |
+function didStopProfile(messageObject) |
+{ |
+ InspectorTest.expectedError("ProfileAgent.stop", messageObject); |
+ InspectorTest.completeTest(); |
+} |