Lines Matching refs:cli
16 const cli = startCLI([script]); constant
19 cli.quit();
23 cli.waitForInitialBreak()
24 .then(() => cli.waitForPrompt())
27 cli.breakInfo,
31 cli.output,
35 .then(() => cli.stepCommand('n'))
38 cli.output.includes(`break in ${script}:2`),
41 cli.output,
45 .then(() => cli.stepCommand('next'))
48 cli.output.includes(`break in ${script}:3`),
51 cli.output,
55 .then(() => cli.stepCommand('cont'))
58 cli.output.includes(`break in ${script}:10`),
61 cli.output,
67 .then(() => cli.command('sb("break.js", 6)'))
68 .then(() => assert.doesNotMatch(cli.output, /Could not resolve breakpoint/))
69 .then(() => cli.command('sb("otherFunction()")'))
70 .then(() => cli.command('sb(16)'))
71 .then(() => assert.doesNotMatch(cli.output, /Could not resolve breakpoint/))
72 .then(() => cli.command('breakpoints'))
74 assert.ok(cli.output.includes(`#0 ${script}:6`));
75 assert.ok(cli.output.includes(`#1 ${script}:16`));
78 .then(() => cli.command('list()'))
81 cli.output,
86 cli.parseSourceLines(),
90 .then(() => cli.command('list(2)'))
93 cli.output,
98 cli.parseSourceLines(),
103 .then(() => cli.stepCommand('s'))
104 .then(() => cli.stepCommand(''))
107 cli.output,
111 .then(() => cli.stepCommand('cont'))
114 cli.output.includes(`break in ${script}:16`),
117 .then(() => cli.stepCommand('cont'))
120 cli.output.includes(`break in ${script}:6`),
123 .then(() => cli.stepCommand(''))
126 cli.output.includes(`debugCommand in ${script}:14`),
129 .then(() => cli.quit())