When the HtmlReporter has a 'spec' query param, the spec list only shows matching specs/suites

This commit is contained in:
Dominick Reinhold
2016-02-28 22:47:10 -08:00
parent b6798cdb06
commit d1a94bcf50
3 changed files with 80 additions and 1 deletions

View File

@@ -49,6 +49,8 @@
getWindowLocation: function() { return window.location; }
});
var filterSpecs = !!queryString.getParam("spec");
var catchingExceptions = queryString.getParam("catch");
env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions);
@@ -76,7 +78,8 @@
getContainer: function() { return document.body; },
createElement: function() { return document.createElement.apply(document, arguments); },
createTextNode: function() { return document.createTextNode.apply(document, arguments); },
timer: new jasmine.Timer()
timer: new jasmine.Timer(),
filterSpecs: filterSpecs
});
/**