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

Side by Side Diff: tests/language_strong/malformed2_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of multitests (Closed)
Patch Set: Created 3 years, 9 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 malformed_test; 5 library malformed_test;
6 6
7 // This part includes the actual tests. 7 // This part includes the actual tests.
8 part 'malformed2_lib.dart'; /// 00: static type warning 8 part 'malformed2_lib.dart'; //# 00: static type warning
9 9
10 bool inCheckedMode() { 10 bool inCheckedMode() {
11 try { 11 try {
12 var i = 42; 12 var i = 42;
13 String s = i; 13 String s = i;
14 } on TypeError catch (e) { 14 } on TypeError catch (e) {
15 return true; 15 return true;
16 } 16 }
17 return false; 17 return false;
18 } 18 }
(...skipping 23 matching lines...) Expand all
42 } 42 }
43 } on TypeError catch (e) { 43 } on TypeError catch (e) {
44 if (expectTypeError) { 44 if (expectTypeError) {
45 print('Type error$message: $e'); 45 print('Type error$message: $e');
46 } else { 46 } else {
47 fail('Unexpected type error$message: $e'); 47 fail('Unexpected type error$message: $e');
48 } 48 }
49 } 49 }
50 } 50 }
51 51
52 const Unresolved c1 = 0; /// 01: static type warning, checked mode compile-time error 52 const Unresolved c1 = 0; //# 01: static type warning, checked mode compile-time error
53 53
54 void main() { 54 void main() {
55 print(c1); /// 01: continued 55 print(c1); //# 01: continued
56 testValue(new List<String>()); /// 00: continued 56 testValue(new List<String>()); //# 00: continued
57 testValue(null); /// 00: continued 57 testValue(null); //# 00: continued
58 checkFailures(); 58 checkFailures();
59 } 59 }
OLDNEW
« no previous file with comments | « tests/language_strong/malbounded_type_test_test.dart ('k') | tests/language_strong/malformed_bound_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698