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

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

Issue 26651006: Switch dart2js 'typedef name = mixinApplication' to 'class name = mixinApplication'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use reportWarningCode instead of reportWarning, which is going away at some point. Created 7 years, 2 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
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/compiler/implementation/filenames.dart'; 8 import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart';
9 import 'analyze_helper.dart'; 9 import 'analyze_helper.dart';
10 import "package:async_helper/async_helper.dart"; 10 import "package:async_helper/async_helper.dart";
11 11
12 /** 12 /**
13 * Map of whitelisted warnings and errors. 13 * Map of whitelisted warnings and errors.
14 * 14 *
15 * Only add a whitelisting together with a bug report to dartbug.com and add 15 * Only add a whitelisting together with a bug report to dartbug.com and add
16 * the bug issue number as a comment on the whitelisting. 16 * the bug issue number as a comment on the whitelisting.
17 * 17 *
18 * 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
19 * the error/warning message in the list of whitelistings for each file. 19 * the error/warning message in the list of whitelistings for each file.
20 */ 20 */
21 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as 21 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as
22 // values. 22 // values.
23 const Map<String,List<String>> WHITE_LIST = const { 23 const Map<String,List<String>> WHITE_LIST = const {
24 '/list.dart':
25 const ["Warning: 'typedef' not allowed here"], // dartbug.com/13907
26 '/stream_controller.dart':
27 const ["Warning: 'typedef' not allowed here"], // dartbug.com/13907
24 }; 28 };
25 29
26 void main() { 30 void main() {
27 var uri = currentDirectory.resolve( 31 var uri = currentDirectory.resolve(
28 'sdk/lib/_internal/compiler/implementation/dart2js.dart'); 32 'sdk/lib/_internal/compiler/implementation/dart2js.dart');
29 asyncTest(() => analyze([uri], WHITE_LIST)); 33 asyncTest(() => analyze([uri], WHITE_LIST));
30 } 34 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_api_test.dart ('k') | tests/compiler/dart2js/mirrors_used_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698