Skip to content

Commit

Permalink
Merge pull request karma-runner#2 from IgorMinar/patch-1
Browse files Browse the repository at this point in the history
Fix Date#now issue for IE8

Poor IE8 does not have Date.now method.
  • Loading branch information
vojtajina committed May 18, 2012
2 parents c55dbc8 + 4f1dac1 commit a168aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter/jasmine.src.js
Expand Up @@ -44,7 +44,7 @@ var TestacularReporter = function(tc) {
};

this.reportSpecStarting = function(spec) {
spec.results_.time = Date.now();
spec.results_.time = new Date().getTime();
};

this.reportSpecResults = function(spec) {
Expand All @@ -54,7 +54,7 @@ var TestacularReporter = function(tc) {
suite: [],
success: spec.results_.failedCount === 0,
skipped: spec.results_.skipped,
time: spec.results_.skipped ? 0 : Date.now() - spec.results_.time,
time: spec.results_.skipped ? 0 : new Date().getTime() - spec.results_.time,
log: []
};

Expand Down

0 comments on commit a168aa7

Please sign in to comment.