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

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

Issue 2950493002: Add closure_test (Closed)
Patch Set: Created 3 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
Index: tests/compiler/dart2js/equivalence/id_equivalence_test.dart
diff --git a/tests/compiler/dart2js/inference/id_equivalence_test.dart b/tests/compiler/dart2js/equivalence/id_equivalence_test.dart
similarity index 78%
rename from tests/compiler/dart2js/inference/id_equivalence_test.dart
rename to tests/compiler/dart2js/equivalence/id_equivalence_test.dart
index 73e1725f482b760ba5ce8fe9560ed54205edcf95..68730ee638ed1a1c5693d17a4faed19ec6a81f14 100644
--- a/tests/compiler/dart2js/inference/id_equivalence_test.dart
+++ b/tests/compiler/dart2js/equivalence/id_equivalence_test.dart
@@ -11,17 +11,24 @@ import 'package:compiler/src/kernel/kernel.dart';
import 'package:compiler/src/tree/nodes.dart' as ast;
import 'package:expect/expect.dart';
import 'package:kernel/ast.dart' as ir;
-import 'inference_test_helper.dart';
-import 'enumerator.dart';
+import '../equivalence/id_equivalence.dart';
+import '../equivalence/id_equivalence_helper.dart';
+
+const List<String> dataDirectories = const <String>[
+ '../inference/data',
+];
main() {
asyncTest(() async {
- Directory dataDir = new Directory.fromUri(Platform.script.resolve('data'));
- await for (FileSystemEntity entity in dataDir.list()) {
- print('Checking ${entity.uri}');
- String annotatedCode = await new File.fromUri(entity.uri).readAsString();
- await checkCode(annotatedCode, checkMemberEquivalence,
- options: [Flags.useKernel]);
+ for (String path in dataDirectories) {
+ Directory dataDir = new Directory.fromUri(Platform.script.resolve(path));
+ await for (FileSystemEntity entity in dataDir.list()) {
+ print('Checking ${entity.uri}');
+ String annotatedCode =
+ await new File.fromUri(entity.uri).readAsString();
+ await checkCode(annotatedCode, checkMemberEquivalence,
+ options: [Flags.useKernel]);
+ }
}
});
}
« no previous file with comments | « tests/compiler/dart2js/equivalence/id_equivalence_helper.dart ('k') | tests/compiler/dart2js/inference/enumerator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698