3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
7 function testFunction()
18 InspectorTest
.runDebuggerTestSuite([
19 function testSetNoneOfURLAndRegex(next
)
21 InspectorTest
.DebuggerAgent
.invoke_setBreakpointByUrl({lineNumber
: 1}, step2
);
25 InspectorTest
.addResult(error
);
30 function testSetBothURLAndRegex(next
)
32 var url
= "debugger-set-breakpoint.js";
33 var urlRegex
= "debugger-set-breakpoint.*";
34 InspectorTest
.DebuggerAgent
.setBreakpointByUrl(1, url
, urlRegex
, step2
);
38 InspectorTest
.addResult(error
);
43 function testSetByRegex(next
)
45 InspectorTest
.DebuggerAgent
.invoke_setBreakpointByUrl({urlRegex
: "debugger-set-breakpoint.*", lineNumber
:8}, step2
);
47 function step2(result
)
49 InspectorTest
.runTestFunctionAndWaitUntilPaused(step3
);
52 function step3(callFrames
)
54 InspectorTest
.captureStackTrace(callFrames
);
64 <body onload=
"runTest()">
66 Tests Debugger.setBreakpointByUrl with isRegex set to true.