| 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 CompilerImpl; | |
| 11 import 'package:compiler/src/commandline_options.dart'; | 10 import 'package:compiler/src/commandline_options.dart'; |
| 12 import 'package:compiler/src/diagnostics/messages.dart' show MessageKind; | |
| 13 import 'package:compiler/src/filenames.dart' show nativeToUriPath; | 11 import 'package:compiler/src/filenames.dart' show nativeToUriPath; |
| 14 | 12 |
| 15 import 'analyze_helper.dart'; | 13 import 'analyze_helper.dart'; |
| 16 import 'memory_compiler.dart'; | |
| 17 | 14 |
| 18 /** | 15 /** |
| 19 * Map of white-listed warnings and errors. | 16 * Map of white-listed warnings and errors. |
| 20 * | 17 * |
| 21 * Use an identifiable suffix of the file uri as key. Use a fixed substring of | 18 * Use an identifiable suffix of the file uri as key. Use a fixed substring of |
| 22 * the error/warning message in the list of white-listings for each file. | 19 * the error/warning message in the list of white-listings for each file. |
| 23 */ | 20 */ |
| 24 // TODO(johnniwinther): Support canonical URIs as keys. | 21 // TODO(johnniwinther): Support canonical URIs as keys. |
| 25 const Map<String, List/*<String|MessageKind>*/ > WHITE_LIST = const { | 22 const Map<String, List /* <String|MessageKind> */ > WHITE_LIST = const { |
| 26 "/test/lib/src/util/": const [ | 23 "/test/lib/src/util/": const [ |
| 27 "Library 'package:async/async.dart' doesn't export a " | 24 "Library 'package:async/async.dart' doesn't export a " |
| 28 "'ForkableStream' declaration.", | 25 "'ForkableStream' declaration.", |
| 29 ], | 26 ], |
| 30 "pkg/kernel/lib/transformations/closure/": const [ | 27 "pkg/kernel/lib/transformations/closure/": const [ |
| 31 "Duplicated library name 'kernel.transformations.closure.converter'", | 28 "Duplicated library name 'kernel.transformations.closure.converter'", |
| 32 ], | 29 ], |
| 33 }; | 30 }; |
| 34 | 31 |
| 35 const List<String> SKIP_LIST = const <String>[ | 32 const List<String> SKIP_LIST = const <String>[ |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 92 } |
| 96 | 93 |
| 97 asyncTest(() async { | 94 asyncTest(() async { |
| 98 if (uriList.isEmpty) { | 95 if (uriList.isEmpty) { |
| 99 uriList = computeInputUris(filter: filter); | 96 uriList = computeInputUris(filter: filter); |
| 100 } | 97 } |
| 101 await analyze(uriList, WHITE_LIST, | 98 await analyze(uriList, WHITE_LIST, |
| 102 mode: AnalysisMode.URI, options: options); | 99 mode: AnalysisMode.URI, options: options); |
| 103 }); | 100 }); |
| 104 } | 101 } |
| OLD | NEW |