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

Unified Diff: tests/compiler/dart2js/closure/closure_test.dart

Issue 3003323002: Prepare inference test for kernel based inference (Closed)
Patch Set: 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/closure/closure_test.dart
diff --git a/tests/compiler/dart2js/closure/closure_test.dart b/tests/compiler/dart2js/closure/closure_test.dart
index 79760ef505c754822e976934c5891bf086d61a38..12598006364e9eed25fa78e2cafc00399110bc48 100644
--- a/tests/compiler/dart2js/closure/closure_test.dart
+++ b/tests/compiler/dart2js/closure/closure_test.dart
@@ -24,23 +24,10 @@ main(List<String> args) {
bool verbose = args.contains('-v');
asyncTest(() async {
Directory dataDir = new Directory.fromUri(Platform.script.resolve('data'));
- await for (FileSystemEntity entity in dataDir.list()) {
- print('----------------------------------------------------------------');
- print('Checking ${entity.uri}');
- print('----------------------------------------------------------------');
- String annotatedCode = await new File.fromUri(entity.uri).readAsString();
- print('--from source---------------------------------------------------');
- await checkCode(annotatedCode, computeClosureData, compileFromSource,
- verbose: verbose);
- // TODO(johnnniwinther,efortuna): Enable the these tests for .dill.
- if (['captured_variable.dart'].contains(entity.uri.pathSegments.last)) {
- print('--skipped for dill--------------------------------------------');
- continue;
- }
- print('--from dill-----------------------------------------------------');
- await checkCode(annotatedCode, computeKernelClosureData, compileFromDill,
- verbose: verbose);
- }
+ await checkTests(dataDir, computeClosureData, computeKernelClosureData,
+ // TODO(johnnniwinther,efortuna): Enable the these tests for .dill.
Siggi Cherem (dart-lang) 2017/08/25 00:23:46 the these => these
Johnni Winther 2017/08/25 07:44:25 Done.
+ skipForKernel: ['captured_variable.dart'],
+ verbose: verbose);
});
}

Powered by Google App Engine
This is Rietveld 408576698