Skip to content

Commit

Permalink
Merge pull request mochajs#446 from hokaccha/fix_grepurl
Browse files Browse the repository at this point in the history
Fix grep url, when click title
  • Loading branch information
tj committed Jun 3, 2012
2 parents 7214745 + 3a800c9 commit f0740d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/html.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function HTML(runner) {
if (suite.root) return; if (suite.root) return;


// suite // suite
var url = location.origin + location.pathname + '?grep=^' + utils.escapeRegexp(suite.fullTitle()); var url = location.protocol + '//' + location.host + location.pathname + '?grep=^' + utils.escapeRegexp(suite.fullTitle());
var el = fragment('<li class="suite"><h1><a href="%s">%s</a></h1></li>', url, suite.title); var el = fragment('<li class="suite"><h1><a href="%s">%s</a></h1></li>', url, suite.title);


// container // container
Expand Down

0 comments on commit f0740d2

Please sign in to comment.