File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ const common = require ( '../common' ) ;
4+
5+ common . skipIfInspectorDisabled ( ) ;
6+
7+ const fixtures = require ( '../common/fixtures' ) ;
8+ const startCLI = require ( '../common/debugger' ) ;
9+
10+ // Test for "Breakpoint at specified location already exists" error.
11+ {
12+ const script = fixtures . path ( 'debugger' , 'three-lines.js' ) ;
13+ const cli = startCLI ( [ script ] ) ;
14+
15+ function onFatal ( error ) {
16+ cli . quit ( ) ;
17+ throw error ;
18+ }
19+
20+ cli . waitForInitialBreak ( )
21+ . then ( ( ) => cli . waitForPrompt ( ) )
22+ . then ( ( ) => cli . command ( 'setBreakpoint(1)' ) )
23+ . then ( ( ) => cli . command ( 'setBreakpoint(1)' ) )
24+ . then ( ( ) => cli . waitFor ( / B r e a k p o i n t a t s p e c i f i e d l o c a t i o n a l r e a d y e x i s t s / ) )
25+ . then ( ( ) => cli . quit ( ) )
26+ . then ( null , onFatal ) ;
27+ }
You can’t perform that action at this time.
0 commit comments