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

Unified Diff: tests/compiler/dart2js/equivalence/id_equivalence_helper.dart

Issue 3007783004: Handle switch continue (Closed)
Patch Set: Updated cf. comment Created 3 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
Index: tests/compiler/dart2js/equivalence/id_equivalence_helper.dart
diff --git a/tests/compiler/dart2js/equivalence/id_equivalence_helper.dart b/tests/compiler/dart2js/equivalence/id_equivalence_helper.dart
index 4f918d6dc50b47a6531c4f939a2c76a46dd739be..21f3a02bac804278b10b27d79dcfd97397daa938 100644
--- a/tests/compiler/dart2js/equivalence/id_equivalence_helper.dart
+++ b/tests/compiler/dart2js/equivalence/id_equivalence_helper.dart
@@ -172,8 +172,12 @@ Future checkTests(Directory dataDir, ComputeMemberDataFunction computeFromAst,
ComputeMemberDataFunction computeFromKernel,
{List<String> skipForKernel: const <String>[],
List<String> options: const <String>[],
- bool verbose: false}) async {
+ List<String> args: const <String>[]}) async {
+ args = args.toList();
+ bool verbose = args.remove('-v');
await for (FileSystemEntity entity in dataDir.list()) {
+ String name = entity.uri.pathSegments.last;
+ if (args.isNotEmpty && !args.contains(name)) continue;
print('----------------------------------------------------------------');
print('Checking ${entity.uri}');
print('----------------------------------------------------------------');
@@ -181,7 +185,7 @@ Future checkTests(Directory dataDir, ComputeMemberDataFunction computeFromAst,
print('--from ast------------------------------------------------------');
await checkCode(annotatedCode, computeFromAst, compileFromSource,
options: options, verbose: verbose);
- if (skipForKernel.contains(entity.uri.pathSegments.last)) {
+ if (skipForKernel.contains(name)) {
print('--skipped for kernel------------------------------------------');
continue;
}
« no previous file with comments | « tests/compiler/dart2js/equivalence/id_equivalence.dart ('k') | tests/compiler/dart2js/equivalence/id_equivalence_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698