| OLD | NEW |
| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'package:expect/expect.dart'; | 6 import 'package:expect/expect.dart'; |
| 7 import 'package:async_helper/async_helper.dart'; | 7 import 'package:async_helper/async_helper.dart'; |
| 8 import 'compiler_helper.dart'; | 8 import 'compiler_helper.dart'; |
| 9 | 9 |
| 10 const String TEST_ONE = r""" | 10 const String TEST_ONE = r""" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 for (int i in a) { | 23 for (int i in a) { |
| 24 if (i == 5) continue; | 24 if (i == 5) continue; |
| 25 x += i; | 25 x += i; |
| 26 } | 26 } |
| 27 return x; | 27 return x; |
| 28 } | 28 } |
| 29 """; | 29 """; |
| 30 | 30 |
| 31 main() { | 31 main() { |
| 32 asyncTest(() => Future.wait([ | 32 asyncTest(() => Future.wait([ |
| 33 compile(TEST_ONE, entry: 'foo', check: (String generated) { | 33 compile(TEST_ONE, entry: 'foo', check: (String generated) { |
| 34 Expect.isTrue(!generated.contains(r'break')); | 34 Expect.isTrue(!generated.contains(r'break')); |
| 35 }), | 35 }), |
| 36 compile(TEST_TWO, entry: 'foo', check: (String generated) { | 36 compile(TEST_TWO, entry: 'foo', check: (String generated) { |
| 37 Expect.isTrue(generated.contains(r'continue')); | 37 Expect.isTrue(generated.contains(r'continue')); |
| 38 }), | 38 }), |
| 39 ])); | 39 ])); |
| 40 } | 40 } |
| OLD | NEW |