| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:io'; | 5 import 'dart:io'; |
| 6 import 'package:async_helper/async_helper.dart'; | 6 import 'package:async_helper/async_helper.dart'; |
| 7 import '../equivalence/id_equivalence_helper.dart'; | 7 import '../equivalence/id_equivalence_helper.dart'; |
| 8 import 'inference_test_helper.dart'; | 8 import 'inference_test_helper.dart'; |
| 9 | 9 |
| 10 const List<String> skipforKernel = const <String>[ |
| 11 'super_get.dart', |
| 12 'super_set.dart', |
| 13 ]; |
| 14 |
| 10 main() { | 15 main() { |
| 11 asyncTest(() async { | 16 asyncTest(() async { |
| 12 Directory dataDir = new Directory.fromUri(Platform.script.resolve('data')); | 17 Directory dataDir = new Directory.fromUri(Platform.script.resolve('data')); |
| 13 await for (FileSystemEntity entity in dataDir.list()) { | 18 await checkTests( |
| 14 print('Checking ${entity.uri}'); | 19 dataDir, computeMemberAstTypeMasks, computeMemberIrTypeMasks, |
| 15 String annotatedCode = await new File.fromUri(entity.uri).readAsString(); | 20 skipForKernel: skipforKernel); |
| 16 await checkCode( | |
| 17 annotatedCode, computeMemberAstTypeMasks, compileFromSource); | |
| 18 } | |
| 19 }); | 21 }); |
| 20 } | 22 } |
| OLD | NEW |