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

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

Issue 17982002: remove warning that is no longer in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | 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 '../../../sdk/lib/_internal/libraries.dart'; 8 import '../../../sdk/lib/_internal/libraries.dart';
9 import 'analyze_helper.dart'; 9 import 'analyze_helper.dart';
10 10
11 /** 11 /**
12 * Map of white-listed warnings and errors. 12 * Map of white-listed warnings and errors.
13 * 13 *
14 * 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
15 * the bug issue number as a comment on the white-listing. 15 * the bug issue number as a comment on the white-listing.
16 * 16 *
17 * 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
18 * 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.
19 */ 19 */
20 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as 20 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as
21 // values. 21 // values.
22 const Map<String, List<String>> WHITE_LIST = const { 22 const Map<String, List<String>> WHITE_LIST = const {
23 'path_observer.dart':
24 const ['Hint: Using "new Symbol"', // Issue 10565.
25 ],
26 'sdk/lib/html/dart2js/html_dart2js.dart': 23 'sdk/lib/html/dart2js/html_dart2js.dart':
27 const ['Hint: The class "Rect" overrides "operator==", ' 24 const ['Hint: The class "Rect" overrides "operator==", '
28 'but not "get hashCode".', 25 'but not "get hashCode".',
29 'Hint: The class "Point" overrides "operator==", ' 26 'Hint: The class "Point" overrides "operator==", '
30 'but not "get hashCode".', 27 'but not "get hashCode".',
31 'Hint: The class "_ClientRect" overrides "operator==", ' 28 'Hint: The class "_ClientRect" overrides "operator==", '
32 'but not "get hashCode".', 29 'but not "get hashCode".',
33 ], 30 ],
34 }; 31 };
35 32
36 void main() { 33 void main() {
37 var uriList = new List<Uri>(); 34 var uriList = new List<Uri>();
38 LIBRARIES.forEach((String name, LibraryInfo info) { 35 LIBRARIES.forEach((String name, LibraryInfo info) {
39 if (info.documented) { 36 if (info.documented) {
40 uriList.add(new Uri(scheme: 'dart', path: name)); 37 uriList.add(new Uri(scheme: 'dart', path: name));
41 } 38 }
42 }); 39 });
43 analyze(uriList, WHITE_LIST); 40 analyze(uriList, WHITE_LIST);
44 } 41 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698