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

Side by Side Diff: tests/language/vm/debug_break_vm_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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // A debug break is not valid Dart syntax unless --enable-debug-break. 5 // A debug break is not valid Dart syntax unless --enable-debug-break.
6 6
7 test(i) { 7 test(i) {
8 break "outside_loop"; // /// 02: compile-time error 8 break "outside_loop"; // //# 02: compile-time error
9 do { 9 do {
10 if (i > 15) { 10 if (i > 15) {
11 break "inside_loop"; // /// 03: compile-time error 11 break "inside_loop"; // //# 03: compile-time error
12 } 12 }
13 } while (false); 13 } while (false);
14 } 14 }
15 15
16 void main() { 16 void main() {
17 break "gdb"; // /// 01: compile-time error 17 break "gdb"; // //# 01: compile-time error
18 for (var i = 0; i < 20; i++) { 18 for (var i = 0; i < 20; i++) {
19 test(i); 19 test(i);
20 } 20 }
21 } 21 }
OLDNEW
« no previous file with comments | « tests/language/vm/debug_break_enabled_vm_test.dart ('k') | tests/language/wrong_number_type_arguments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698