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

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

Issue 2883623004: fix KeyEvent and KeyboardEvent (Closed)
Patch Set: Created 3 years, 7 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) 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:sdk_library_metadata/libraries.dart'; 7 import 'package:sdk_library_metadata/libraries.dart';
8 import 'analyze_helper.dart'; 8 import 'analyze_helper.dart';
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/diagnostics/messages.dart' show MessageKind; 10 import 'package:compiler/src/diagnostics/messages.dart' show MessageKind;
11 11
12 /** 12 /**
13 * Map of white-listed warnings and errors. 13 * Map of white-listed warnings and errors.
14 * 14 *
15 * Only add a white-listing together with a bug report to dartbug.com and add 15 * 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. 16 * the bug issue number as a comment on the white-listing.
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 white-listings for each file. 19 * the error/warning message in the list of white-listings for each file.
20 */ 20 */
21 // TODO(johnniwinther): Support canonical URIs as keys. 21 // TODO(johnniwinther): Support canonical URIs as keys.
22 const Map<String, List<String>> WHITE_LIST = const { 22 const Map<String, List<String>> WHITE_LIST = const {};
23 'html_dart2js.dart': const <String>[
24 // Issue 29597
25 "The getter '_charCode' is not defined for the class 'KeyboardEvent'.",
26 "The getter '_keyCode' is not defined for the class 'KeyboardEvent'.",
27 "The getter 'keyLocation' is not defined for the class 'KeyboardEvent'.",
28 ],
29 };
30 23
31 void main() { 24 void main() {
32 var uriList = new List<Uri>(); 25 var uriList = new List<Uri>();
33 libraries.forEach((String name, LibraryInfo info) { 26 libraries.forEach((String name, LibraryInfo info) {
34 if (info.documented) { 27 if (info.documented) {
35 uriList.add(new Uri(scheme: 'dart', path: name)); 28 uriList.add(new Uri(scheme: 'dart', path: name));
36 } 29 }
37 }); 30 });
38 asyncTest(() => analyze(uriList, WHITE_LIST, mode: AnalysisMode.ALL)); 31 asyncTest(() => analyze(uriList, WHITE_LIST, mode: AnalysisMode.ALL));
39 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698