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

Unified Diff: utils/testrunner/layout_test_controller.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 | « utils/template/uitest.dart ('k') | utils/testrunner/standard_test_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/layout_test_controller.dart
diff --git a/utils/testrunner/layout_test_controller.dart b/utils/testrunner/layout_test_controller.dart
index 986e6681cbe9e39943862372e5141d3c6490c60c..ddaa0cf8909abc54fa1a99a962287a839a1872f1 100644
--- a/utils/testrunner/layout_test_controller.dart
+++ b/utils/testrunner/layout_test_controller.dart
@@ -42,7 +42,7 @@ Function notifyDone;
// Variable below here are local to this file.
var passCount = 0, failCount = 0, errorCount = 0;
-Date start;
+DateTime start;
class Macros {
static const String testTime = '<TIME>';
@@ -79,7 +79,7 @@ void outputResult(start, label, result, [message = '']) {
}
var elapsed = '';
if (includeTime) {
- var end = new Date.now();
+ var end = new DateTime.now();
double duration = (end.difference(start)).inMilliseconds.toDouble();
duration /= 1000;
elapsed = '${duration.toStringAsFixed(3)}s ';
@@ -127,7 +127,7 @@ complete() {
runTextLayoutTest(testNum) {
var url = '$baseUrl?test=$testNum';
var stdout = new List();
- start = new Date.now();
+ start = new DateTime.now();
Process.start(drt, [url]).then((process) {
// Drain stderr to not leak resources.
process.stderr.onData = process.stderr.read;
@@ -213,7 +213,7 @@ runTextLayoutTest(testNum) {
runPixelLayoutTest(int testNum) {
var url = '$baseUrl?test=$testNum';
var stdout = new List();
- start = new Date.now();
+ start = new DateTime.now();
Process.start(drt, ["$url'-p"]).then((process) {
// Drain stderr to not leak resources.
process.stderr.onData = process.stderr.read;
« no previous file with comments | « utils/template/uitest.dart ('k') | utils/testrunner/standard_test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698