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

Unified Diff: lib/src/run_batch.dart

Issue 2059763002: Update dart2js deps to prevent crash on unsupported platform libraries. (Closed) Base URL: git@github.com:dart-lang/rasta.git@mandatory_initializer
Patch Set: Created 4 years, 6 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 | « no previous file | submodules.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/run_batch.dart
diff --git a/lib/src/run_batch.dart b/lib/src/run_batch.dart
index bc33979354450bf6f9f739928c4e813717330da7..f8fb715cb488eac65baea17ef885de384c6d981a 100644
--- a/lib/src/run_batch.dart
+++ b/lib/src/run_batch.dart
@@ -67,11 +67,12 @@ class RunBatch extends Rastask {
List<TestDescription> failures = <TestDescription>[];
- int count = 1;
+ int count = 0;
print("\n");
Stream<TestDescription> tests =
listTests(<Uri>[testDirectory], pattern: options.pattern);
await for (TestDescription description in tests) {
+ count++;
try {
Options options = new Options(
description.uri,
@@ -117,7 +118,6 @@ class RunBatch extends Rastask {
"Average time per test: ${averageTimeMs}ms\n"
"[${wallClock.elapsed} | --% | +$successes | -$failuresPadded ]"
);
- count++;
}
wallClock.stop();
String averageTimeMs =
« no previous file with comments | « no previous file | submodules.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698