forked from assaf/zombie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
64 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("./lib/zombie") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1 @@ | ||
zombie = require("./zombie/browser") | ||
|
||
# Constructor for a new Browser. Takes no arguments. | ||
exports.Browser = zombie.Browser | ||
exports.package = zombie.package | ||
exports.version = zombie.version | ||
|
||
|
||
# ### zombie.visit(url, callback) | ||
# ### zombie.visit(url, options, callback) | ||
# | ||
# Creates a new Browser, opens window to the URL and calls the callback when | ||
# done processing all events. | ||
# | ||
# For example: | ||
# zombie = require("zombie") | ||
# | ||
# vows.describe("Brains").addBatch( | ||
# "seek": | ||
# topic: -> | ||
# zombie.browse "http://localhost:3000/brains", @callback | ||
# "should find": (browser)-> | ||
# assert.ok browser.html("#brains")[0] | ||
# ).export(module); | ||
# | ||
# * url -- URL of page to open | ||
# * options -- Initialize the browser with these options | ||
# * callback -- Called with error, browser | ||
exports.visit = (url, options, callback)-> | ||
new zombie.Browser(options).visit(url, options, callback) | ||
|
||
|
||
# ### listen port, callback | ||
# ### listen socket, callback | ||
# ### listen callback | ||
# | ||
# Ask Zombie to listen on the specified port for requests. The default | ||
# port is 8091, or you can specify a socket name. The callback is | ||
# invoked once Zombie is ready to accept new connections. | ||
exports.listen = (port, callback)-> | ||
require("./zombie/protocol").listen(port, callback) | ||
module.exports = require("./zombie") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
zombie = require("./browser") | ||
|
||
# Constructor for a new Browser. Takes no arguments. | ||
exports.Browser = zombie.Browser | ||
exports.package = zombie.package | ||
exports.version = zombie.version | ||
|
||
|
||
# ### zombie.visit(url, callback) | ||
# ### zombie.visit(url, options, callback) | ||
# | ||
# Creates a new Browser, opens window to the URL and calls the callback when | ||
# done processing all events. | ||
# | ||
# For example: | ||
# zombie = require("zombie") | ||
# | ||
# vows.describe("Brains").addBatch( | ||
# "seek": | ||
# topic: -> | ||
# zombie.browse "http://localhost:3000/brains", @callback | ||
# "should find": (browser)-> | ||
# assert.ok browser.html("#brains")[0] | ||
# ).export(module); | ||
# | ||
# * url -- URL of page to open | ||
# * options -- Initialize the browser with these options | ||
# * callback -- Called with error, browser | ||
exports.visit = (url, options, callback)-> | ||
new zombie.Browser(options).visit(url, options, callback) | ||
|
||
|
||
# ### listen port, callback | ||
# ### listen socket, callback | ||
# ### listen callback | ||
# | ||
# Ask Zombie to listen on the specified port for requests. The default | ||
# port is 8091, or you can specify a socket name. The callback is | ||
# invoked once Zombie is ready to accept new connections. | ||
exports.listen = (port, callback)-> | ||
require("./protocol").listen(port, callback) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.