Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1615)

Unified Diff: pkg/unittest/lib/compact_vm_config.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/serialization/test/serialization_test.dart ('k') | pkg/unittest/lib/html_layout_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/compact_vm_config.dart
diff --git a/pkg/unittest/lib/compact_vm_config.dart b/pkg/unittest/lib/compact_vm_config.dart
index 0b64cfdee5364658007fa39a8352201eb35538c5..cb21d4df5d944679cbe3aff2f02d6ab812e17fa2 100644
--- a/pkg/unittest/lib/compact_vm_config.dart
+++ b/pkg/unittest/lib/compact_vm_config.dart
@@ -20,7 +20,7 @@ const String _NONE = '\u001b[0m';
const int MAX_LINE = 80;
class CompactVMConfiguration extends VMConfiguration {
- Date _start;
+ DateTime _start;
int _pass = 0;
int _fail = 0;
@@ -30,7 +30,7 @@ class CompactVMConfiguration extends VMConfiguration {
void onStart() {
super.onStart();
- _start = new Date.now();
+ _start = new DateTime.now();
}
void onTestStart(TestCase test) {
@@ -84,9 +84,9 @@ class CompactVMConfiguration extends VMConfiguration {
final int _nonVisiblePrefix = 1 + _GREEN.length + _NONE.length;
- void _progressLine(Date startTime, int passed, int failed, String message,
+ void _progressLine(DateTime startTime, int passed, int failed, String message,
[String color = _NONE]) {
- var duration = (new Date.now()).difference(startTime);
+ var duration = (new DateTime.now()).difference(startTime);
var buffer = new StringBuffer();
// \r moves back to the beginnig of the current line.
buffer.add('\r${_timeString(duration)} ');
« no previous file with comments | « pkg/serialization/test/serialization_test.dart ('k') | pkg/unittest/lib/html_layout_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698