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

Unified Diff: lib/src/frontend/timeout.dart

Issue 1580243002: Wait for a timed-out test's tear-down logic. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 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 | « lib/src/backend/invoker.dart ('k') | test/runner/engine_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/frontend/timeout.dart
diff --git a/lib/src/frontend/timeout.dart b/lib/src/frontend/timeout.dart
index 78fea385fe775b667fdd6fb1a3571c51fa5c76d4..2e4f165e0db2898edaafe60d363b4a7edb7246a7 100644
--- a/lib/src/frontend/timeout.dart
+++ b/lib/src/frontend/timeout.dart
@@ -59,4 +59,10 @@ class Timeout {
if (this == none) return null;
return duration == null ? base * scaleFactor : duration;
}
+
+ String toString() {
+ if (duration != null) return duration.toString();
+ if (scaleFactor != null) return "${scaleFactor}x";
+ return "none";
+ }
}
« no previous file with comments | « lib/src/backend/invoker.dart ('k') | test/runner/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698