| Index: tests/compiler/dart2js/rewrite_better_user_test.dart
|
| diff --git a/tests/compiler/dart2js/rewrite_better_user_test.dart b/tests/compiler/dart2js/rewrite_better_user_test.dart
|
| index 6d1fbfe61d2dfc85ab66a7a4ecacac36da1eba11..102e7e852fe1b28414e6d509ad433ff23780926c 100644
|
| --- a/tests/compiler/dart2js/rewrite_better_user_test.dart
|
| +++ b/tests/compiler/dart2js/rewrite_better_user_test.dart
|
| @@ -5,6 +5,7 @@
|
| // field is being gvn'ed.
|
|
|
| import 'compiler_helper.dart';
|
| +import "../../async_helper.dart";
|
|
|
| const String TEST = r"""
|
| class A {
|
| @@ -25,11 +26,12 @@ main() {
|
| """;
|
|
|
| main() {
|
| - String generated = compileAll(TEST);
|
| - RegExp regexp = new RegExp('foo\\\$0\\\$bailout');
|
| - Iterator matches = regexp.allMatches(generated).iterator;
|
| + asyncTest(() => compileAll(TEST).then((generated) {
|
| + RegExp regexp = new RegExp('foo\\\$0\\\$bailout');
|
| + Iterator matches = regexp.allMatches(generated).iterator;
|
|
|
| - // We check that there is only one call to the bailout method.
|
| - // One match for the call, one for the definition.
|
| - checkNumberOfMatches(matches, 2);
|
| + // We check that there is only one call to the bailout method.
|
| + // One match for the call, one for the definition.
|
| + checkNumberOfMatches(matches, 2);
|
| + }));
|
| }
|
|
|