Permalink
Browse files

Merge pull request #159 from gr2m/patch-1

Just a simple change to not only log the failed error, but also the actua
  • Loading branch information...
ariya committed Sep 21, 2011
2 parents 7c39b71 + cec8b56 commit 428c386cb89e1e35c017c42fbfbee9bf7888e96e
Showing with 3 additions and 7 deletions.
  1. +3 −7 examples/run-jasmine.coffee
@@ -52,12 +52,8 @@ page.open phantom.args[0], (status) ->
, ->
page.evaluate ->
console.log document.body.querySelector('.description').innerText
- list = document.body.querySelectorAll 'div.jasmine_reporter > div.suite.failed'
- for i in list
- el = i
- desc = el.querySelectorAll '.description'
- console.log ''
- for j in desc
- console.log j.innerText
+ list = document.body.querySelectorAll('.failed > .description, .failed > .messages > .resultMessage')
+ for el in list
+ console.log el.innerText
phantom.exit()

0 comments on commit 428c386

Please sign in to comment.