Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Output details when tests fail under PhantomJS

  • Loading branch information...
commit de5f85ea1d7db7b2151bdcae9c6b51e7f1c41c6b 1 parent 6c3078c
@marijnh marijnh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/phantom_driver.js
View
3  test/phantom_driver.js
@@ -14,7 +14,8 @@ page.open("http://localhost:3000/test/index.html", function (status) {
}, function () {
var failed = page.evaluate(function () { return window.failed; });
var output = page.evaluate(function () {
- return document.getElementById('status').innerText;
+ return document.getElementById('output').innerText + "\n" +
+ document.getElementById('status').innerText;
});
console.log(output);
phantom.exit(failed > 0 ? 1 : 0);
Please sign in to comment.
Something went wrong with that request. Please try again.