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

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

Issue 1504403005: Add missing compile-time errors for async/await. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix after rebase Created 5 years 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) 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 ['a05h', 'c11a', 'c11b'], 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: []);
22 } 22 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698