Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: test/inspector/cpu-profiler/stop-without-preceeding-start.js

Issue 2369753004: [inspector] added inspector test runner [part 5] (Closed)
Patch Set: addressed comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+}

Powered by Google App Engine
This is Rietveld 408576698