| Index: tests/compiler/dart2js/for_in_test.dart
|
| diff --git a/tests/compiler/dart2js/for_in_test.dart b/tests/compiler/dart2js/for_in_test.dart
|
| index 4ded809ae167d1321c663c8f97f205294f5b89c9..23db24a89ef599c1bafbc1d4df8e60e6565c4c9c 100644
|
| --- a/tests/compiler/dart2js/for_in_test.dart
|
| +++ b/tests/compiler/dart2js/for_in_test.dart
|
| @@ -2,7 +2,9 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -import "package:expect/expect.dart";
|
| +import 'dart:async';
|
| +import 'package:expect/expect.dart';
|
| +import 'package:async_helper/async_helper.dart';
|
| import 'compiler_helper.dart';
|
|
|
| const String TEST_ONE = r"""
|
| @@ -27,8 +29,12 @@ foo(a) {
|
| """;
|
|
|
| main() {
|
| - String generated = compile(TEST_ONE, entry: 'foo');
|
| - Expect.isTrue(!generated.contains(r'break'));
|
| - generated = compile(TEST_TWO, entry: 'foo');
|
| - Expect.isTrue(generated.contains(r'continue'));
|
| + asyncTest(() => Future.wait([
|
| + compile(TEST_ONE, entry: 'foo', check: (String generated) {
|
| + Expect.isTrue(!generated.contains(r'break'));
|
| + }),
|
| + compile(TEST_TWO, entry: 'foo', check: (String generated) {
|
| + Expect.isTrue(generated.contains(r'continue'));
|
| + }),
|
| + ]));
|
| }
|
|
|