| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library dart2js.analyze_test.test; | 5 library dart2js.analyze_test.test; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 10 import 'package:compiler/src/apiimpl.dart' show | 10 import 'package:compiler/src/apiimpl.dart' show |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 const List<String> SKIP_LIST = const <String>[ | 44 const List<String> SKIP_LIST = const <String>[ |
| 45 // Helper files: | 45 // Helper files: |
| 46 "dart2js_batch2_run.dart", | 46 "dart2js_batch2_run.dart", |
| 47 "http_launch_data/", | 47 "http_launch_data/", |
| 48 "mirrors_helper.dart", | 48 "mirrors_helper.dart", |
| 49 "path%20with%20spaces/", | 49 "path%20with%20spaces/", |
| 50 "one_line_dart_program.dart", | 50 "one_line_dart_program.dart", |
| 51 "sourcemaps/invokes_test_file.dart", | 51 "sourcemaps/invokes_test_file.dart", |
| 52 "cps_ir/input/", |
| 52 // No longer maintained: | 53 // No longer maintained: |
| 53 "backend_dart/", | 54 "backend_dart/", |
| 54 // Broken tests: | 55 // Broken tests: |
| 55 "http_test.dart", | 56 "http_test.dart", |
| 56 ]; | 57 ]; |
| 57 | 58 |
| 58 main(List<String> arguments) { | 59 main(List<String> arguments) { |
| 59 bool verbose = arguments.contains('-v'); | 60 bool verbose = arguments.contains('-v'); |
| 60 | 61 |
| 61 List<String> options = <String>[ | 62 List<String> options = <String>[ |
| (...skipping 11 matching lines...) Expand all Loading... |
| 73 if (entity is File && entity.path.endsWith('.dart')) { | 74 if (entity is File && entity.path.endsWith('.dart')) { |
| 74 Uri file = Uri.base.resolve(nativeToUriPath(entity.path)); | 75 Uri file = Uri.base.resolve(nativeToUriPath(entity.path)); |
| 75 if (!SKIP_LIST.any((skip) => file.path.contains(skip))) { | 76 if (!SKIP_LIST.any((skip) => file.path.contains(skip))) { |
| 76 uriList.add(file); | 77 uriList.add(file); |
| 77 } | 78 } |
| 78 } | 79 } |
| 79 } | 80 } |
| 80 await analyze(uriList, WHITE_LIST, mode: AnalysisMode.URI); | 81 await analyze(uriList, WHITE_LIST, mode: AnalysisMode.URI); |
| 81 }); | 82 }); |
| 82 } | 83 } |
| OLD | NEW |