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

Unified Diff: pkg/unittest/test_case.dart

Issue 10897016: Testrunner for 3rd parties. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/unittest/config.dart ('k') | pkg/unittest/unittest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test_case.dart
===================================================================
--- pkg/unittest/test_case.dart (revision 11393)
+++ pkg/unittest/test_case.dart (working copy)
@@ -75,11 +75,16 @@
_setUp();
}
_config.onTestStart(this);
+ startTime = new Date.now();
+ runningTime = null;
test();
}
}
void _complete() {
+ if (runningTime == null) {
+ runningTime = new Date.now().difference(startTime);
+ }
if (!_doneTeardown) {
if (_tearDown != null) {
_tearDown();
« no previous file with comments | « pkg/unittest/config.dart ('k') | pkg/unittest/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698