summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/debugger/set-breakpoint-before-enabling.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/inspector/debugger/set-breakpoint-before-enabling.js')
-rw-r--r--deps/v8/test/inspector/debugger/set-breakpoint-before-enabling.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/debugger/set-breakpoint-before-enabling.js b/deps/v8/test/inspector/debugger/set-breakpoint-before-enabling.js
new file mode 100644
index 0000000000..8480aa6f75
--- /dev/null
+++ b/deps/v8/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.
+
+Protocol.Debugger.setBreakpointByUrl({ url: "http://example.com", lineNumber: 10 }).then(didSetBreakpointByUrlBeforeEnable);
+
+function didSetBreakpointByUrlBeforeEnable(message)
+{
+ InspectorTest.log("setBreakpointByUrl error: " + JSON.stringify(message.error, null, 2));
+ Protocol.Debugger.setBreakpoint().then(didSetBreakpointBeforeEnable);
+}
+
+function didSetBreakpointBeforeEnable(message)
+{
+ InspectorTest.log("setBreakpoint error: " + JSON.stringify(message.error, null, 2));
+ InspectorTest.completeTest();
+}