Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: tests/compiler/dart2js/analyze_test_test.dart

Issue 2346053002: dart2js: fix tests after moving to .packages in the SDK repo (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 CompilerImpl; 11 CompilerImpl;
12 import 'package:compiler/src/commandline_options.dart'; 12 import 'package:compiler/src/commandline_options.dart';
13 import 'package:compiler/src/diagnostics/messages.dart' show 13 import 'package:compiler/src/diagnostics/messages.dart' show
14 MessageKind; 14 MessageKind;
15 import 'package:compiler/src/filenames.dart' show 15 import 'package:compiler/src/filenames.dart' show
16 nativeToUriPath; 16 nativeToUriPath;
17 17
18 import 'analyze_helper.dart'; 18 import 'analyze_helper.dart';
19 import 'memory_compiler.dart'; 19 import 'memory_compiler.dart';
20 20
21 /** 21 /**
22 * Map of white-listed warnings and errors. 22 * Map of white-listed warnings and errors.
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/lib/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 [ 33 "/utils.dart": const [
34 "Duplicated library name 'utils'.", 34 "Duplicated library name 'utils'.",
35 ], 35 ],
36 }; 36 };
37 37
38 const List<String> SKIP_LIST = const <String>[ 38 const List<String> SKIP_LIST = const <String>[
39 // Helper files: 39 // Helper files:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (uriList.isEmpty) { 101 if (uriList.isEmpty) {
102 uriList = computeInputUris(filter: filter); 102 uriList = computeInputUris(filter: filter);
103 } 103 }
104 await analyze( 104 await analyze(
105 uriList, 105 uriList,
106 WHITE_LIST, 106 WHITE_LIST,
107 mode: AnalysisMode.URI, 107 mode: AnalysisMode.URI,
108 options: options); 108 options: options);
109 }); 109 });
110 } 110 }
OLDNEW
« no previous file with comments | « pkg/dart2js_incremental/lib/dart2js_incremental.dart ('k') | tests/compiler/dart2js/import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698