Persist randomize param in 'run all' links

This commit is contained in:
Blake Sawyer
2015-12-11 23:53:23 -05:00
parent 0d4c8d13bb
commit ee0ff3b6c8
2 changed files with 41 additions and 1 deletions

View File

@@ -180,9 +180,10 @@ jasmineRequire.HtmlReporter = function(j$) {
if (specsExecuted < totalSpecsDefined) {
var skippedMessage = 'Ran ' + specsExecuted + ' of ' + totalSpecsDefined + ' specs - run all';
var skippedLink = order && order.random ? '?random=true' : '?';
alert.appendChild(
createDom('span', {className: 'jasmine-bar jasmine-skipped'},
createDom('a', {href: '?', title: 'Run all specs'}, skippedMessage)
createDom('a', {href: skippedLink, title: 'Run all specs'}, skippedMessage)
)
);
}