| Index: tests/compiler/dart2js/field_type_simple_inferer_test.dart
|
| diff --git a/tests/compiler/dart2js/field_type_simple_inferer_test.dart b/tests/compiler/dart2js/field_type_simple_inferer_test.dart
|
| index 9f43fd59b427931e0017b0f2b7efa10ae442d04e..6fc97afeae97befda69b0b843b65033004c252f2 100644
|
| --- a/tests/compiler/dart2js/field_type_simple_inferer_test.dart
|
| +++ b/tests/compiler/dart2js/field_type_simple_inferer_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 'dart:async';
|
| import 'package:expect/expect.dart';
|
| +import "package:async_helper/async_helper.dart";
|
| import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'
|
| show TypeMask;
|
|
|
| @@ -16,11 +18,12 @@ void compileAndFind(String code,
|
| check(compiler, element)) {
|
| Uri uri = new Uri(scheme: 'source');
|
| var compiler = compilerFor(code, uri);
|
| - compiler.runCompiler(uri);
|
| - compiler.disableInlining = disableInlining;
|
| - var cls = findElement(compiler, className);
|
| - var member = cls.lookupMember(buildSourceString(memberName));
|
| - return check(compiler, member);
|
| + asyncTest(() => compiler.runCompiler(uri).then((_) {
|
| + compiler.disableInlining = disableInlining;
|
| + var cls = findElement(compiler, className);
|
| + var member = cls.lookupMember(buildSourceString(memberName));
|
| + check(compiler, member);
|
| + }));
|
| }
|
|
|
| const String TEST_1 = r"""
|
|
|