Permit HTMLReporter to render every 250ms

- This is necessary for the user to see spec results fill-in
  progressively.
- There is a slight performance loss. 250 - 500ms seems to deliver the
  same amount of loss. This is still at parity with Jasmine 1.x
This commit is contained in:
Davis W. Frank & Rajan Agaskar
2012-12-07 13:53:26 -08:00
parent 234f2a1585
commit c2e1327f39
3 changed files with 30 additions and 5 deletions

View File

@@ -8,9 +8,10 @@ describe("HtmlReporter", function() {
env = new jasmine.Env();
env.updateInterval = 0;
body = document.createElement("body");
fakeDocument = { body: body, location: { search: "" } };
htmlReporter = new jasmine.HtmlReporter(fakeDocument);
htmlReporter = new jasmine.HtmlReporter(fakeDocument, null, function(fn) { fn() });
});
function fakeSpec(name) {