         "should evaluate in context and return value": (title)->
           assert.equal title, "The Living"
 
+.addBatch
 
   "evaluating":
     "context":

        assert.isEmpty browser.errors
      "should set global variable": (browser)->
        assert.equal browser.text("title"), "foo"

  
  "failing":
    "incomplete":
      topic: ->
        brains.get "/script/incomplete", (req, res)->
          res.send "<script>1+</script>"
        browser = new Browser
        browser.wants "http://localhost:3003/script/incomplete", @callback
      "should propagate error to window": (browser)->
        assert.equal browser.error.message, "Unexpected end of input"

    "error":
      topic: ->
        brains.get "/script/error", (req, res)->
          res.send "<script>(function(foo) { foo.bar })()</script>"
        browser = new Browser
        browser.wants "http://localhost:3003/script/error", @callback
      "should propagate error to window": (browser)->
        assert.equal browser.error.message, "Cannot read property 'bar' of undefined"


  "order":

      browser.wants "http://localhost:3003/script/order", @callback
    "should run scripts in order regardless of source": (browser)->
      assert.equal browser.text("title"), "ZeroOneTwo"


  "eval":
