Skip to content

Commit

Permalink
Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Feb 11, 2011
1 parent 32c3860 commit fd82106
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 58 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ zombie.js-changelog(7) -- Changelog

### Version 0.8.13 Pending

Tested with Node 0.4.0.

Add support for IFRAMEs (Damian Janowski).

Upgraded to HTML5 0.2.13.
Expand All @@ -11,14 +13,16 @@ Fixes #71 cookie names now preserve case.

Fixes #69 incorrectly resolving partial URLs in XHR requests.

Fixes browser.clock to use Date.now instead of new Date (faster).
Fixes `browser.clock` to use `Date.now` instead of `new Date` (faster).

Fixes browser.dump.
Fixes `browser.dump`.

In debug mode, show when firing timeout/interval.

Added `cake install`.

293 Tests
3.6 sec to complete
3.7 sec to complete


### Version 0.8.12 2011-02-01
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./lib/zombie")
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ "name": "zombie",
"version": "0.8.12",
"version": "0.8.13",
"description": "Insanely fast, full-stack, headless browser testing using Node.js",
"homepage": "http://zombie.labnotes.org/",
"author": "Assaf Arkin <assaf@labnotes.org> (http://labnotes.org/)",
Expand All @@ -11,25 +11,25 @@
"man": "./man7"
},
"files": [
"README.md",
"CHANGELOG.md",
"Cakefile",
"MIT-LICENSE",
"TODO.md",
"dep",
"src",
"spec",
"CHANGELOG.md",
"doc",
"index.js",
"lib",
"man7",
"package.json"
"MIT-LICENSE",
"README.md",
"spec",
"src",
"TODO.md",
"xpath"
],
"scripts": {
"build": "cake build",
"test": "vows"
"test": "cake test"
},
"engines": {
"node": ">= 0.2.5"
"node": ">= 0.2.6"
},
"dependencies": {
"html5": "0.2.13",
Expand Down
42 changes: 1 addition & 41 deletions src/index.coffee
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")
41 changes: 41 additions & 0 deletions src/zombie/index.coffee
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)
6 changes: 3 additions & 3 deletions src/zombie/xpath.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ xpath = ->
unless engine
engine = vm.Script.createContext()
engine.navigator = { appVersion: "Zombie.js" }
new vm.Script(fs.readFileSync(__dirname + "/../../dep/util.js")).runInContext engine
new vm.Script(fs.readFileSync(__dirname + "/../../dep/xmltoken.js")).runInContext engine
new vm.Script(fs.readFileSync(__dirname + "/../../dep/xpath.js")).runInContext engine
new vm.Script(fs.readFileSync(__dirname + "/../../xpath/util.js")).runInContext engine
new vm.Script(fs.readFileSync(__dirname + "/../../xpath/xmltoken.js")).runInContext engine
new vm.Script(fs.readFileSync(__dirname + "/../../xpath/xpath.js")).runInContext engine
return engine

core.HTMLDocument.prototype.evaluate = (expr, node, nsResolver, type, result)->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fd82106

Please sign in to comment.