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 12 matching lines...) Expand all Loading... |
23 * | 23 * |
24 * Use an identifiable suffix of the file uri as key. Use a fixed substring of | 24 * Use an identifiable suffix of the file uri as key. Use a fixed substring of |
25 * the error/warning message in the list of white-listings for each file. | 25 * the error/warning message in the list of white-listings for each file. |
26 */ | 26 */ |
27 // TODO(johnniwinther): Support canonical URIs as keys. | 27 // TODO(johnniwinther): Support canonical URIs as keys. |
28 const Map<String, List/*<String|MessageKind>*/> WHITE_LIST = const { | 28 const Map<String, List/*<String|MessageKind>*/> WHITE_LIST = const { |
29 "/test/src/util/": const [ | 29 "/test/src/util/": const [ |
30 "Library 'package:async/async.dart' doesn't export a " | 30 "Library 'package:async/async.dart' doesn't export a " |
31 "'ForkableStream' declaration.", | 31 "'ForkableStream' declaration.", |
32 ], | 32 ], |
| 33 "/utils.dart": const [ |
| 34 "Duplicated library name 'utils'.", |
| 35 ], |
33 }; | 36 }; |
34 | 37 |
35 const List<String> SKIP_LIST = const <String>[ | 38 const List<String> SKIP_LIST = const <String>[ |
36 // Helper files: | 39 // Helper files: |
37 "/data/", | 40 "/data/", |
38 "quarantined/http_launch_data/", | 41 "quarantined/http_launch_data/", |
39 "mirrors_helper.dart", | 42 "mirrors_helper.dart", |
40 "path%20with%20spaces/", | 43 "path%20with%20spaces/", |
41 // Broken tests: | 44 // Broken tests: |
42 "quarantined/http_test.dart", | 45 "quarantined/http_test.dart", |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 if (uriList.isEmpty) { | 101 if (uriList.isEmpty) { |
99 uriList = computeInputUris(filter: filter); | 102 uriList = computeInputUris(filter: filter); |
100 } | 103 } |
101 await analyze( | 104 await analyze( |
102 uriList, | 105 uriList, |
103 WHITE_LIST, | 106 WHITE_LIST, |
104 mode: AnalysisMode.URI, | 107 mode: AnalysisMode.URI, |
105 options: options); | 108 options: options); |
106 }); | 109 }); |
107 } | 110 } |
OLD | NEW |