Index: test/inspector/debugger/set-breakpoint-expected.txt |
diff --git a/test/inspector/debugger/set-breakpoint-expected.txt b/test/inspector/debugger/set-breakpoint-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a8787904922038e052af162ae646e40ecb831183 |
--- /dev/null |
+++ b/test/inspector/debugger/set-breakpoint-expected.txt |
@@ -0,0 +1,165 @@ |
+Checks protocol methods related to breakpoints |
+ |
+Running test: oneBreakpointTwoScripts |
+{ |
+ method : Debugger.breakpointResolved |
+ params : { |
+ breakpointId : <breakpointId> |
+ location : { |
+ columnNumber : 6 |
+ lineNumber : 3 |
+ scriptId : <scriptId> |
+ } |
+ } |
+} |
+{ |
+ method : Debugger.breakpointResolved |
+ params : { |
+ breakpointId : <breakpointId> |
+ location : { |
+ columnNumber : 6 |
+ lineNumber : 3 |
+ scriptId : <scriptId> |
+ } |
+ } |
+} |
+foo (oneBreakpointTwoScripts.js:3:6) |
+arr.map.f (:0:13) |
+(anonymous) (:0:4) |
+{ |
+ method : Debugger.paused |
+ params : { |
+ hitBreakpoints : [ |
+ [0] : oneBreakpointTwoScripts.js:3:0 |
+ ] |
+ reason : other |
+ } |
+} |
+foo (oneBreakpointTwoScripts.js:3:6) |
+arr.map.f (:0:13) |
+(anonymous) (:0:4) |
+{ |
+ method : Debugger.paused |
+ params : { |
+ hitBreakpoints : [ |
+ [0] : oneBreakpointTwoScripts.js:3:0 |
+ ] |
+ reason : other |
+ } |
+} |
+ |
+Running test: debugCommandAndRegularBreakpoint |
+foo (test.js:9:2) |
+(anonymous) (:0:0) |
+{ |
+ method : Debugger.paused |
+ params : { |
+ hitBreakpoints : [ |
+ [0] : <scriptId>:8:12:debug |
+ [1] : test.js:8:12 |
+ ] |
+ reason : debugCommand |
+ } |
+} |
+foo (test.js:9:2) |
+(anonymous) (:0:0) |
+{ |
+ method : Debugger.paused |
+ params : { |
+ hitBreakpoints : [ |
+ [0] : test.js:8:12 |
+ ] |
+ reason : other |
+ } |
+} |
+ |
+Running test: setBreakpointByRawLocation |
+boo (setBreakpointByRawLocation.js:2:6) |
+(anonymous) (:0:0) |
+{ |
+ method : Debugger.paused |
+ params : { |
+ hitBreakpoints : [ |
+ [0] : <scriptId>:2:0 |
+ ] |
+ reason : other |
+ } |
+} |
+{ |
+ error : { |
+ code : -32000 |
+ message : Breakpoint at specified location already exists. |
+ } |
+ id : <messageId> |
+} |
+{ |
+ error : { |
+ code : -32000 |
+ message : Could not resolve breakpoint |
+ } |
+ id : <messageId> |
+} |
+ |
+Running test: setBreakpointArgumentsChecks |
+{ |
+ error : { |
+ code : -32000 |
+ message : Either url or urlRegex must be specified. |
+ } |
+ id : <messageId> |
+} |
+{ |
+ error : { |
+ code : -32000 |
+ message : Breakpoint at specified location already exists. |
+ } |
+ id : <messageId> |
+} |
+ |
+Running test: setBreakpointByRegex |
+{ |
+ method : Debugger.breakpointResolved |
+ params : { |
+ breakpointId : <breakpointId> |
+ location : { |
+ columnNumber : 6 |
+ lineNumber : 3 |
+ scriptId : <scriptId> |
+ } |
+ } |
+} |
+{ |
+ method : Debugger.breakpointResolved |
+ params : { |
+ breakpointId : <breakpointId> |
+ location : { |
+ columnNumber : 6 |
+ lineNumber : 3 |
+ scriptId : <scriptId> |
+ } |
+ } |
+} |
+foo (setBreakpointByRegex-1.js:3:6) |
+arr.map.f (:0:13) |
+(anonymous) (:0:4) |
+{ |
+ method : Debugger.paused |
+ params : { |
+ hitBreakpoints : [ |
+ [0] : /setBreakpointByRegex-[0-9]\.js/:3:0 |
+ ] |
+ reason : other |
+ } |
+} |
+foo (setBreakpointByRegex-2.js:3:6) |
+arr.map.f (:0:13) |
+(anonymous) (:0:4) |
+{ |
+ method : Debugger.paused |
+ params : { |
+ hitBreakpoints : [ |
+ [0] : /setBreakpointByRegex-[0-9]\.js/:3:0 |
+ ] |
+ reason : other |
+ } |
+} |