Skip to content

Commit

Permalink
Refs #4739, display page logs when a screenshot test times out.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Mar 6, 2014
1 parent c9f13e1 commit d789162
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/lib/screenshot-testing/support/chai-extras.js
Expand Up @@ -74,7 +74,11 @@ chai.Assertion.addChainableMethod('capture', function () {
var timeout = setTimeout(function () {
pageRenderer.abort();

done(new Error("Screenshot load timeout."));
var indent = " ",
err = new Error("Screenshot load timeout.");
err.stack = err.message + "\n" + indent + getPageLogsString(pageRenderer.pageLogs, indent);

done(err);
}, 120 * 1000);

try {
Expand Down

0 comments on commit d789162

Please sign in to comment.