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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/uri/uri_sources.gypi ('k') | tests/compiler/dart2js/analyze_only_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 analyze_api; 5 library analyze_api;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:uri';
9 import '../../../sdk/lib/_internal/libraries.dart'; 8 import '../../../sdk/lib/_internal/libraries.dart';
10 import 'analyze_helper.dart'; 9 import 'analyze_helper.dart';
11 10
12 /** 11 /**
13 * Map of white-listed warnings and errors. 12 * Map of white-listed warnings and errors.
14 * 13 *
15 * Only add a white-listing together with a bug report to dartbug.com and add 14 * Only add a white-listing together with a bug report to dartbug.com and add
16 * the bug issue number as a comment on the white-listing. 15 * the bug issue number as a comment on the white-listing.
17 * 16 *
18 * Use an identifiable suffix of the file uri as key. Use a fixed substring of 17 * Use an identifiable suffix of the file uri as key. Use a fixed substring of
19 * the error/warning message in the list of white-listings for each file. 18 * the error/warning message in the list of white-listings for each file.
20 */ 19 */
21 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as 20 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as
22 // values. 21 // values.
23 const Map<String, List<String>> WHITE_LIST = const { 22 const Map<String, List<String>> WHITE_LIST = const {
24 'html_dart2js.dart': 23 'html_dart2js.dart':
25 const ['Warning: Using "new Symbol"', // Issue 10565. 24 const ['Warning: Using "new Symbol"', // Issue 10565.
26 // Issue 10688: 25 // Issue 10688:
27 'Warning: no property named', 26 'Warning: no property named',
28 "Warning: 'UnsupportedError' is not callable", 27 "Warning: 'UnsupportedError' is not callable",
29 "Warning: no operator [] in class Iterable"], 28 "Warning: no operator [] in class Iterable"],
30 }; 29 };
31 30
32 void main() { 31 void main() {
33 var uriList = new List<Uri>(); 32 var uriList = new List<Uri>();
34 LIBRARIES.forEach((String name, LibraryInfo info) { 33 LIBRARIES.forEach((String name, LibraryInfo info) {
35 if (info.documented) { 34 if (info.documented) {
36 uriList.add(new Uri.fromComponents(scheme: 'dart', path: name)); 35 uriList.add(new Uri(scheme: 'dart', path: name));
37 } 36 }
38 }); 37 });
39 analyze(uriList, WHITE_LIST); 38 analyze(uriList, WHITE_LIST);
40 } 39 }
OLDNEW
« no previous file with comments | « sdk/lib/uri/uri_sources.gypi ('k') | tests/compiler/dart2js/analyze_only_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698