Index: test/inspector/debugger/set-breakpoint-before-enabling.js |
diff --git a/test/inspector/debugger/set-breakpoint-before-enabling.js b/test/inspector/debugger/set-breakpoint-before-enabling.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d905847b59d7a7068615d8b0f2a6de77835eeff2 |
--- /dev/null |
+++ b/test/inspector/debugger/set-breakpoint-before-enabling.js |
@@ -0,0 +1,17 @@ |
+// 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. |
+ |
+InspectorTest.sendCommand("Debugger.setBreakpointByUrl", { url: "http://example.com", lineNumber: 10 }, didSetBreakpointByUrlBeforeEnable); |
+ |
+function didSetBreakpointByUrlBeforeEnable(message) |
+{ |
+ InspectorTest.log("setBreakpointByUrl error: " + JSON.stringify(message.error, null, 2)); |
+ InspectorTest.sendCommand("Debugger.setBreakpoint", {}, didSetBreakpointBeforeEnable); |
+} |
+ |
+function didSetBreakpointBeforeEnable(message) |
+{ |
+ InspectorTest.log("setBreakpoint error: " + JSON.stringify(message.error, null, 2)); |
+ InspectorTest.completeTest(); |
+} |