|
9 | 9 | import {AsyncTestCompleter, describe, expect, inject, it} from '@angular/core/testing/testing_internal'; |
10 | 10 |
|
11 | 11 | import {MeasureValues, Metric, Options, ReflectiveInjector, Reporter, Sampler, Validator, WebDriverAdapter} from '../index'; |
12 | | -import {DateWrapper, isBlank, isPresent} from '../src/facade/lang'; |
| 12 | +import {isBlank, isPresent} from '../src/facade/lang'; |
13 | 13 |
|
14 | 14 | export function main() { |
15 | 15 | var EMPTY_EXECUTE = () => {}; |
@@ -39,7 +39,7 @@ export function main() { |
39 | 39 | Options.DEFAULT_PROVIDERS, Sampler.PROVIDERS, {provide: Metric, useValue: metric}, |
40 | 40 | {provide: Reporter, useValue: reporter}, {provide: WebDriverAdapter, useValue: driver}, |
41 | 41 | {provide: Options.EXECUTE, useValue: execute}, {provide: Validator, useValue: validator}, |
42 | | - {provide: Options.NOW, useValue: () => DateWrapper.fromMillis(time++)} |
| 42 | + {provide: Options.NOW, useValue: () => new Date(time++)} |
43 | 43 | ]; |
44 | 44 | if (isPresent(prepare)) { |
45 | 45 | providers.push({provide: Options.PREPARE, useValue: prepare}); |
@@ -204,7 +204,7 @@ export function main() { |
204 | 204 | } |
205 | 205 |
|
206 | 206 | function mv(runIndex: number, time: number, values: {[key: string]: number}) { |
207 | | - return new MeasureValues(runIndex, DateWrapper.fromMillis(time), values); |
| 207 | + return new MeasureValues(runIndex, new Date(time), values); |
208 | 208 | } |
209 | 209 |
|
210 | 210 | function createCountingValidator( |
|
0 commit comments