| Index: pkg/unittest/lib/interactive_html_config.dart
|
| diff --git a/pkg/unittest/lib/interactive_html_config.dart b/pkg/unittest/lib/interactive_html_config.dart
|
| index 37beabf75b059786397f2e621041123c646f47a7..3971a9f36cc9e352c8d843b030e8d5ab7fcae4ae 100644
|
| --- a/pkg/unittest/lib/interactive_html_config.dart
|
| +++ b/pkg/unittest/lib/interactive_html_config.dart
|
| @@ -85,10 +85,10 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
|
| Window parentWindow;
|
|
|
| /** The time at which tests start. */
|
| - Map<int,Date> _testStarts;
|
| + Map<int,DateTime> _testStarts;
|
|
|
| ChildInteractiveHtmlConfiguration() :
|
| - _testStarts = new Map<int,Date>();
|
| + _testStarts = new Map<int,DateTime>();
|
|
|
| /** Don't start running tests automatically. */
|
| get autoStart => false;
|
| @@ -124,7 +124,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
|
| /** Record the start time of the test. */
|
| void onTestStart(TestCase testCase) {
|
| super.onTestStart(testCase);
|
| - _testStarts[testCase.id]= new Date.now();
|
| + _testStarts[testCase.id]= new DateTime.now();
|
| }
|
|
|
| /**
|
| @@ -137,7 +137,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
|
| if (testCase == null) {
|
| elapsed = -1;
|
| } else {
|
| - Date end = new Date.now();
|
| + DateTime end = new DateTime.now();
|
| elapsed = end.difference(_testStarts[testCase.id]).inMilliseconds;
|
| }
|
| parentWindow.postMessage(
|
| @@ -151,7 +151,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
|
| */
|
| void onTestResult(TestCase testCase) {
|
| super.onTestResult(testCase);
|
| - Date end = new Date.now();
|
| + DateTime end = new DateTime.now();
|
| int elapsed = end.difference(_testStarts[testCase.id]).inMilliseconds;
|
| if (testCase.stackTrace != null) {
|
| parentWindow.postMessage(
|
| @@ -174,7 +174,7 @@ class ChildInteractiveHtmlConfiguration extends HtmlConfiguration {
|
| * in new functions that create child IFrames and run the real tests.
|
| */
|
| class ParentInteractiveHtmlConfiguration extends HtmlConfiguration {
|
| - Map<int,Date> _testStarts;
|
| + Map<int,DateTime> _testStarts;
|
|
|
|
|
| /** The stack that was posted back from the child, if any. */
|
| @@ -195,7 +195,7 @@ class ParentInteractiveHtmlConfiguration extends HtmlConfiguration {
|
| Function _messageHandler;
|
|
|
| ParentInteractiveHtmlConfiguration() :
|
| - _testStarts = new Map<int,Date>();
|
| + _testStarts = new Map<int,DateTime>();
|
|
|
| // We need to block until the test is done, so we make a
|
| // dummy async callback that we will use to flag completion.
|
| @@ -278,7 +278,7 @@ class ParentInteractiveHtmlConfiguration extends HtmlConfiguration {
|
|
|
| void onTestStart(TestCase testCase) {
|
| var id = testCase.id;
|
| - _testStarts[testCase.id]= new Date.now();
|
| + _testStarts[testCase.id]= new DateTime.now();
|
| super.onTestStart(testCase);
|
| _stack = null;
|
| // Convert the group name to a DOM id.
|
|
|