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]); |
+ } |
} |
}); |
} |