OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 and | 5 // Test that dart2js produces the expected static type warnings and |
6 // compile-time errors for these tests. | 6 // compile-time errors for these tests. |
7 | 7 |
8 import 'frontend_checker.dart'; | 8 import 'frontend_checker.dart'; |
9 | 9 |
10 /// Map of test files to run together with their associated whitelist. | 10 /// Map of test files to run together with their associated whitelist. |
11 /// | 11 /// |
12 /// For instance | 12 /// For instance |
13 /// 'language/async_await_syntax_test.dart': const ['a03b', 'a04b'] | 13 /// 'language/async_await_syntax_test.dart': const ['a03b', 'a04b'] |
14 /// includes the multitest in 'language/async_await_syntax_test.dart' but | 14 /// includes the multitest in 'language/async_await_syntax_test.dart' but |
15 /// expects the subtests 'a03b' and 'a04c' to fail. | 15 /// expects the subtests 'a03b' and 'a04c' to fail. |
16 const Map<String, List<String>> TESTS = const <String, List<String>>{ | 16 const Map<String, List<String>> TESTS = const <String, List<String>>{ |
17 'language/async_await_syntax_test.dart': const [], | 17 'language/async_await_syntax_test.dart': const [], |
18 }; | 18 }; |
19 | 19 |
20 void main(List<String> arguments) { | 20 void main(List<String> arguments) { |
21 check(TESTS, arguments: arguments, options: ['--enable-async']); | 21 check(TESTS, arguments: arguments, options: ['--enable-async']); |
22 } | 22 } |
OLD | NEW |