OLD | NEW |
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 // Test that dart2js produces the expected static type warnings for least upper | 5 // Test that dart2js produces the expected static type warnings for least upper |
6 // bound language tests. This ensures that the analyzer and dart2js agrees | 6 // bound language tests. This ensures that the analyzer and dart2js agrees |
7 // on these tests. | 7 // on these tests. |
8 | 8 |
9 import 'warnings_checker.dart'; | 9 import 'warnings_checker.dart'; |
10 | 10 |
11 /// Map from test files to a map of their expected status. If the status map is | 11 /// Map from test files to a map of their expected status. If the status map is |
12 /// `null` no warnings must be missing or unexpected, otherwise the status map | 12 /// `null` no warnings must be missing or unexpected, otherwise the status map |
13 /// can contain a list of line numbers for keys 'missing' and 'unexpected' for | 13 /// can contain a list of line numbers for keys 'missing' and 'unexpected' for |
14 /// the warnings of each category. | 14 /// the warnings of each category. |
15 const Map<String, dynamic> TESTS = const { | 15 const Map<String, dynamic> TESTS = const { |
16 // Instance methods. | 16 // Instance methods. |
17 'language/check_method_override_test.dart': null, | 17 'language/check_method_override_test.dart': null, |
18 'co19/src/Language/Classes/Instance_Methods/' | 18 'co19/src/Language/Classes/Instance_Methods/' |
19 'override_more_parameters_t01.dart': null, | 19 'override_more_parameters_t01.dart': null, |
20 'co19/src/Language/Classes/Instance_Methods/' | 20 'co19/src/Language/Classes/Instance_Methods/' |
21 'override_more_parameters_t02.dart': null, | 21 'override_more_parameters_t02.dart': null, |
22 'co19/src/Language/Classes/Instance_Methods/' | 22 'co19/src/Language/Classes/Instance_Methods/' |
23 'override_fewer_parameters_t01.dart': null, | 23 'override_fewer_parameters_t01.dart': null, |
24 'co19/src/Language/Classes/Instance_Methods/' | 24 'co19/src/Language/Classes/Instance_Methods/' |
25 'override_fewer_parameters_t02.dart': null, | 25 'override_fewer_parameters_t02.dart': null, |
26 'co19/src/Language/Classes/Instance_Methods/' | 26 'co19/src/Language/Classes/Instance_Methods/' |
27 'override_named_parameters_t01.dart': null, | 27 'override_named_parameters_t01.dart': null, |
28 'co19/src/Language/Classes/Instance_Methods/' | 28 'co19/src/Language/Classes/Instance_Methods/' |
29 'override_named_parameters_t02.dart': null, | 29 'override_named_parameters_t02.dart': null, |
30 'co19/src/Language/Classes/Instance_Methods/' | 30 'co19/src/Language/Classes/Instance_Methods/' |
31 'override_named_parameters_t03.dart': null, | 31 'override_named_parameters_t03.dart': null, |
32 'co19/src/Language/Classes/Instance_Methods/' | 32 'co19/src/Language/Classes/Instance_Methods/' |
33 'override_named_parameters_t04.dart': null, | 33 'override_named_parameters_t04.dart': null, |
34 'co19/src/Language/Classes/Instance_Methods/' | 34 'co19/src/Language/Classes/Instance_Methods/' |
35 'override_named_parameters_t05.dart': null, | 35 'override_named_parameters_t05.dart': null, |
36 'co19/src/Language/Classes/Instance_Methods/' | 36 'co19/src/Language/Classes/Instance_Methods/' |
37 'override_named_parameters_t06.dart': null, | 37 'override_named_parameters_t06.dart': null, |
38 'co19/src/Language/Classes/Instance_Methods/' | 38 'co19/src/Language/Classes/Instance_Methods/' |
39 'override_subtype_t01.dart': null, | 39 'override_subtype_t01.dart': null, |
40 'co19/src/Language/Classes/Instance_Methods/' | 40 'co19/src/Language/Classes/Instance_Methods/' |
41 'override_subtype_t02.dart': null, | 41 'override_subtype_t02.dart': null, |
42 'co19/src/Language/Classes/Instance_Methods/' | 42 'co19/src/Language/Classes/Instance_Methods/' |
43 'override_subtype_t03.dart': null, | 43 'override_subtype_t03.dart': null, |
44 'co19/src/Language/Classes/Instance_Methods/' | 44 'co19/src/Language/Classes/Instance_Methods/' |
45 'override_subtype_t04.dart': null, | 45 'override_subtype_t04.dart': null, |
46 'co19/src/Language/Classes/Instance_Methods/' | 46 'co19/src/Language/Classes/Instance_Methods/' |
47 'override_subtype_t05.dart': null, | 47 'override_subtype_t05.dart': null, |
48 'co19/src/Language/Classes/Instance_Methods/' | 48 'co19/src/Language/Classes/Instance_Methods/' |
49 'override_subtype_t06.dart': null, | 49 'override_subtype_t06.dart': null, |
50 'co19/src/Language/Classes/Instance_Methods/' | 50 'co19/src/Language/Classes/Instance_Methods/' |
51 'same_name_static_member_in_superclass_t01.dart': null, | 51 'same_name_static_member_in_superclass_t01.dart': null, |
52 'co19/src/Language/Classes/Instance_Methods/' | 52 'co19/src/Language/Classes/Instance_Methods/' |
53 'same_name_static_member_in_superclass_t02.dart': null, | 53 'same_name_static_member_in_superclass_t02.dart': null, |
54 'co19/src/Language/Classes/Instance_Methods/' | 54 'co19/src/Language/Classes/Instance_Methods/' |
55 'same_name_static_member_in_superclass_t04.dart': null, | 55 'same_name_static_member_in_superclass_t04.dart': null, |
56 'co19/src/Language/Classes/Instance_Methods/' | 56 'co19/src/Language/Classes/Instance_Methods/' |
57 'same_name_static_member_in_superclass_t05.dart': null, | 57 'same_name_static_member_in_superclass_t05.dart': null, |
58 'co19/src/Language/Classes/Instance_Methods/' | 58 'co19/src/Language/Classes/Instance_Methods/' |
59 'same_name_static_member_in_superclass_t06.dart': null, | 59 'same_name_static_member_in_superclass_t06.dart': null, |
60 'co19/src/Language/Classes/Instance_Methods/' | 60 'co19/src/Language/Classes/Instance_Methods/' |
61 'same_name_static_member_in_superclass_t07.dart': null, | 61 'same_name_static_member_in_superclass_t07.dart': null, |
62 'co19/src/Language/Classes/Instance_Methods/' | 62 'co19/src/Language/Classes/Instance_Methods/' |
63 'same_name_static_member_in_superclass_t08.dart': null, | 63 'same_name_static_member_in_superclass_t08.dart': null, |
64 'co19/src/Language/Classes/Instance_Methods/' | 64 'co19/src/Language/Classes/Instance_Methods/' |
65 'same_name_static_member_in_superclass_t09.dart': null, | 65 'same_name_static_member_in_superclass_t09.dart': null, |
66 | 66 |
67 // Getters. | 67 // Getters. |
68 'co19/src/Language/Classes/Getters/override_t01.dart': null, | 68 'co19/src/Language/Classes/Getters/override_t01.dart': null, |
69 'co19/src/Language/Classes/Getters/override_t02.dart': null, | 69 'co19/src/Language/Classes/Getters/override_t02.dart': null, |
70 'co19/src/Language/Classes/Getters/override_t03.dart': null, | 70 'co19/src/Language/Classes/Getters/override_t03.dart': null, |
71 'co19/src/Language/Classes/Getters/override_t04.dart': null, | 71 'co19/src/Language/Classes/Getters/override_t04.dart': null, |
72 }; | 72 }; |
73 | 73 |
74 void main() { | 74 void main() { |
75 checkWarnings(TESTS); | 75 checkWarnings(TESTS); |
76 } | 76 } |
OLD | NEW |