Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-breakpoints / debugger-set-breakpoint-regex.html
blob6e570d7e6ea135c8fd8d1a77dbed11f1d1e6237f
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
7 function testFunction()
9 foo();
12 function foo()
16 function test()
18 InspectorTest.runDebuggerTestSuite([
19 function testSetNoneOfURLAndRegex(next)
21 InspectorTest.DebuggerAgent.invoke_setBreakpointByUrl({lineNumber: 1}, step2);
23 function step2(error)
25 InspectorTest.addResult(error);
26 next();
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);
36 function step2(error)
38 InspectorTest.addResult(error);
39 next();
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);
55 next();
58 ]);
61 </script>
62 </head>
64 <body onload="runTest()">
65 <p>
66 Tests Debugger.setBreakpointByUrl with isRegex set to true.
67 </p>
68 </body>
69 </html>