(r: TestRoot, run: (p: TestP, source: Dap.Source) => Promise<void>)
| 946 | |
| 947 | describe('hit count', () => { |
| 948 | const doTest = async (r: TestRoot, run: (p: TestP, source: Dap.Source) => Promise<void>) => { |
| 949 | const p = await r.launchUrlAndLoad('index.html'); |
| 950 | p.evaluate(` |
| 951 | function foo() { |
| 952 | for (let i = 0; i < 10; i++) { |
| 953 | console.log(i); |
| 954 | console.log(i); |
| 955 | console.log(i); |
| 956 | } |
| 957 | } |
| 958 | `); |
| 959 | const { source } = await p.waitForSource('eval'); |
| 960 | source.path = undefined; |
| 961 | await run(p, source); |
| 962 | p.assertLog(); |
| 963 | }; |
| 964 | |
| 965 | const waitForHit = async (p: TestP) => { |
| 966 | const { threadId: pageThreadId } = await p.dap.once('stopped'); |
no test coverage detected