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

Unified Diff: tests/compiler/dart2js/serialization/compilation_test.dart

Issue 1969313007: Handle explicit constructor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: tests/compiler/dart2js/serialization/compilation_test.dart
diff --git a/tests/compiler/dart2js/serialization/compilation_test.dart b/tests/compiler/dart2js/serialization/compilation_test.dart
index 4bb7467ab6a9119ab84bcf25052d9bb0c1195acb..7d9cce2c7d05bc4b4550810fb1e652f039b9c643 100644
--- a/tests/compiler/dart2js/serialization/compilation_test.dart
+++ b/tests/compiler/dart2js/serialization/compilation_test.dart
@@ -27,14 +27,11 @@ main(List<String> args) {
await compile(serializedData, entryPoint, null);
} else {
Uri entryPoint = Uri.parse('memory:main.dart');
- int start = arguments.index ?? 0;
- int end = arguments.index ?? TESTS.length - 1;
- for (int index = start; index <= end; index++) {
- Test test = TESTS[index];
+ arguments.forEachTest(TESTS, (int index, Test test) async {
await compile(serializedData, entryPoint, test,
index: index,
verbose: arguments.verbose);
- }
+ });
}
});
}

Powered by Google App Engine
This is Rietveld 408576698