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

Commit

Permalink
Adding batches
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Dec 18, 2011
1 parent 754d06d commit a471765
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions spec/browser_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
JSDOM = require("jsdom")


Vows.describe("Browser").addBatch(
Vows.describe("Browser").addBatch

"browsing":
topic: ->
Expand Down Expand Up @@ -212,6 +212,8 @@ Vows.describe("Browser").addBatch(
Browser.site = null


.addBatch

"content selection":
topic: ->
brains.get "/browser/walking", (req, res)->
Expand Down Expand Up @@ -309,6 +311,8 @@ Vows.describe("Browser").addBatch(
assert.equal $('body').find('#main a').text(), 'Kill'


.addBatch

"click link":
topic: ->
brains.get "/browser/head", (req, res)->
Expand Down Expand Up @@ -384,6 +388,8 @@ Vows.describe("Browser").addBatch(
assert.equal browser.window.navigator.userAgent, "imposter"


.addBatch

"authentication":
"basic":
topic: ->
Expand Down Expand Up @@ -514,6 +520,8 @@ Vows.describe("Browser").addBatch(
assert.equal "http://localhost:3003/browser/living", forked.location.href


.addBatch

"iframes":
topic: ->
brains.get "/iframe", (req, res)->
Expand Down Expand Up @@ -551,4 +559,4 @@ Vows.describe("Browser").addBatch(
assert.equal "http://localhost:3003/iframe", browser.window.location


).export(module)
.export(module)

0 comments on commit a471765

Please sign in to comment.