Skip to content

Commit

Permalink
Add a convenient link to re run a single test.
Browse files Browse the repository at this point in the history
Add a convenient link to re run a single test case at the top of each case's log.
  • Loading branch information
GeoffHowie committed Jun 30, 2014
1 parent 0ef48ee commit 9af4c3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gjstest/internal/js/browser/run_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ gjstest.internal.browser.TestCase.prototype.renderDom = function() {
article.addClass('test-case');

this.logElem_ = $.elem('ol').addClass('test-log');
var runOnlyLink = $.elem('a').text('re-run only this test').attr('href',
window.location.href.replace(
/(\?.*$|$)/, '?filter=^' + this.testName_ + '$'));
this.logElem_.append(runOnlyLink);
article.append(this.logElem_);

this.headerElem_.makeToggleForElem(this.logElem_);
Expand Down

0 comments on commit 9af4c3e

Please sign in to comment.