Skip to content
Browse files

Just a simple change to not only log the failed error, but also the a…

…ctual message
  • Loading branch information...
1 parent 7c39b71 commit cec8b5672ef96b7063b016ac32c4181c3eb2f280 @gr2m gr2m committed Sep 21, 2011
Showing with 3 additions and 7 deletions.
  1. +3 −7 examples/run-jasmine.coffee
View
10 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 cec8b56

Please sign in to comment.
Something went wrong with that request. Please try again.