Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First test of the CLI with a browser. Ref #95.
The CLI test uses hub.phantomContext() to create a browser. Other changes: - Mock streams set isTTY = false to prevent weird handling. - Because mock streams are not a TTY, writing keys to them using readline.write(null, keyObject) triggers a Node.js crash. Wrap the Ctrl+U write in lib/cli with a check to see if the readline object is hooked into a terminal. - Add pause() and resume() noop methods to mock streams. This lets them work in readline. - Change a couple process.exit() calls to use self.exit() in lib/cli.
- Loading branch information
Showing
3 changed files
with
120 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters