app.workbench.debug.waitForStackFrame(sf=>sf.name==='index.js'&&sf.lineNumber===6,'looking for index.js and line 6').then(c,e);
});
awaitapp.screenCapturer.capture('debugging is paused');
});
it('focus stack frames and variables',asyncfunction(){
...
...
@@ -88,15 +83,12 @@ export function setup() {
constapp=this.appasSpectronApplication;
awaitapp.workbench.debug.stepIn();
awaitapp.screenCapturer.capture('debugging has stepped in');
constfirst=awaitapp.workbench.debug.waitForStackFrame(sf=>sf.name==='response.js','looking for response.js');
awaitapp.workbench.debug.stepOver();
awaitapp.screenCapturer.capture('debugging has stepped over');
awaitapp.workbench.debug.waitForStackFrame(sf=>sf.name==='response.js'&&sf.lineNumber===first.lineNumber+1,`looking for response.js and line ${first.lineNumber+1}`);
awaitapp.workbench.debug.stepOut();
awaitapp.screenCapturer.capture('debugging has stepped out');
awaitapp.workbench.debug.waitForStackFrame(sf=>sf.name==='index.js'&&sf.lineNumber===7,`looking for index.js and line 7`);
});
...
...
@@ -105,7 +97,6 @@ export function setup() {
constapp=this.appasSpectronApplication;
awaitapp.workbench.debug.continue();
awaitapp.screenCapturer.capture('debugging has continued');