Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Updated CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Jul 29, 2011
1 parent 9b9395b commit 8d14285
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
zombie.js-changelog(7) -- Changelog
===================================

### Version 0.9.6 2011-07-28

Implements file:// requests using node.js' native fs module rather than
leaning on its http module (Ryan Petrello)


### Version 0.9.5 2011-04-11

Expand Down
10 changes: 6 additions & 4 deletions spec/history-spec.coffee
Expand Up @@ -11,7 +11,8 @@ brains.get "/history/redirect", (req, res)->
brains.get "/history/redirect_back", (req, res)->
res.redirect req.headers['referer']

readmefile = ['file://', process.cwd(), '/', 'README.md'].join('')
readmefile = "file://#{process.cwd()}/README.md"


vows.describe("History").addBatch(
"new window":
Expand Down Expand Up @@ -78,6 +79,7 @@ vows.describe("History").addBatch(
"should not fire popstate event": (window)-> assert.isUndefined window.popstate

"location":

"open page":
zombie.wants "http://localhost:3003/"
"should add page to history": (browser)-> assert.length browser.window.history, 1
Expand All @@ -88,10 +90,10 @@ vows.describe("History").addBatch(
"open from file system":
zombie.wants `readmefile`
"should add page to history": (browser)-> assert.length browser.window.history, 1
"should change location URL": (browser)-> assert.equal browser.location, `readmefile`
"should change location URL": (browser)-> assert.equal browser.location, readmefile
"should load document": (browser)-> assert.include browser.html(), "zombie.js(1) -- Insanely fast, headless full-stack testing using Node.js"
"should set window location": (browser)-> assert.equal browser.window.location.href, `readmefile`
"should set document location": (browser)-> assert.equal browser.document.location.href, `readmefile`
"should set window location": (browser)-> assert.equal browser.window.location.href, readmefile
"should set document location": (browser)-> assert.equal browser.document.location.href, readmefile
"change pathname":
zombie.wants "http://localhost:3003/"
topic: (browser)->
Expand Down

0 comments on commit 8d14285

Please sign in to comment.