Skip to content

Commit

Permalink
Merge pull request #1467 from backspace/preserve-pathname-in-failed-r…
Browse files Browse the repository at this point in the history
…eplay-links

Use existing test URL builder in failed replay links
  • Loading branch information
Christopher Hiller committed Dec 15, 2014
2 parents b70438b + 8c5ce96 commit d1152cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function HTML(runner) {
} else if (test.pending) {
var el = fragment('<li class="test pass pending"><h2>%e</h2></li>', test.title);
} else {
var el = fragment('<li class="test fail"><h2>%e <a href="?grep=%e" class="replay">‣</a></h2></li>', test.title, encodeURIComponent(test.fullTitle()));
var el = fragment('<li class="test fail"><h2>%e <a href="%e" class="replay">‣</a></h2></li>', test.title, self.testURL(test));
var str = test.err.stack || test.err.toString();

// FF / Opera do not add the message
Expand Down

0 comments on commit d1152cb

Please sign in to comment.