Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
To be squashed - fix interactive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliemr committed Dec 18, 2016
1 parent 00baa54 commit 35c4469
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export class DebugHelper {
* @param {number=} opt_debugPort Optional port to u`se for the debugging
* process.
*/
init(debuggerClientPath: string, blockUntilExit: boolean, onStartFn: Function,
init(
debuggerClientPath: string, blockUntilExit: boolean, onStartFn: Function,
opt_debugPort?: number) {
webdriver.promise.ControlFlow.prototype.getControlFlowText = function() {
let controlFlowText = this.getSchedule(/* opt_includeStackTraces */ true);
Expand Down Expand Up @@ -124,7 +125,7 @@ export class DebugHelper {
// To be able to simulate callback/asynchronous code, we poll this object
// whenever `breakpointHook` is called.
this.dbgCodeExecutor = {
execPromise_: null, // Promise pointing to currently executing command.
execPromise_: null, // Promise pointing to currently executing command.
execPromiseResult_: undefined, // Return value of promise.
execPromiseError_: undefined, // Error from promise.

Expand Down
4 changes: 4 additions & 0 deletions lib/debugger/clients/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ WdRepl.prototype.initServer_ = function(port) {
// Intentionally blank.
});
sock.end();
// TODO(juliemr): Investigate why this is necessary. At this point, there
// should be no active listeners so this process should just exit
// by itself.
process.exit(0);
} else if (input[input.length - 1] === '\t') {
// If the last character is the TAB key, this is an autocomplete
// request. We use everything before the TAB as the init data to feed
Expand Down

0 comments on commit 35c4469

Please sign in to comment.