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

Side by Side Diff: tests/language/regress_24935_test.dart

Issue 2770063002: Revert "Format all 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
« no previous file with comments | « tests/language/regress_23500_test.dart ('k') | tests/language/regress_26855_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 S() => new Stream.fromIterable([1]); 7 S() => new Stream.fromIterable([1]);
8 8
9 Future main() async { 9 Future main() async {
10 L: 10 L: for (var s = 0; s < 10; s++) {
11 for (var s = 0; s < 10; s++) { 11 await for (var s1 in S()){
12 await for (var s1 in S()) { 12 await for (var s2 in S()){
13 await for (var s2 in S()) {
14 continue L; 13 continue L;
15 } 14 }
16 } 15 }
17 } 16 }
18 // Regression check: make sure throwing an exception 17 // Regression check: make sure throwing an exception
19 // after breaking out of the innermost loop does not 18 // after breaking out of the innermost loop does not
20 // crash the VM. In other words, the expected test 19 // crash the VM. In other words, the expected test
21 // outcome is an unhandled exception. 20 // outcome is an unhandled exception.
22 throw "ball"; //# 01: runtime error 21 throw "ball"; //# 01: runtime error
23 } 22 }
23
24
OLDNEW
« no previous file with comments | « tests/language/regress_23500_test.dart ('k') | tests/language/regress_26855_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698