Permalink
Browse files

fixed html/jQuery test

  • Loading branch information...
1 parent 32b4a56 commit e5f3d949b3219d00d44b197e1ff2a49f6185f27d @sgentle sgentle committed Oct 12, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/page.coffee
View
6 test/page.coffee
@@ -60,10 +60,10 @@ describe "Pages"
topic: t (page) ->
page.evaluate (-> document.title), (title) => @callback null, title
- "which matches": (title) ->
+ "which is correct": (title) ->
assert.equal title, "Test page title"
- "can access DOM nodes":
+ "can evaluate DOM nodes":
topic: t (page) ->
page.evaluate (-> document.getElementById('somediv')), (node) => @callback null, node
@@ -76,7 +76,7 @@ describe "Pages"
page.evaluate (-> $('#somediv').html()), (html) => @callback null, html
"which return the correct result": (html) ->
- html = html.replace(/\n\t/g, "")
+ html = html.replace(/\s\s+/g, "")
assert.equal html, '<div class="anotherdiv">Some page content</div>'

0 comments on commit e5f3d94

Please sign in to comment.