| Index: tests/compiler/dart2js/builtin_interceptor_test.dart
|
| diff --git a/tests/compiler/dart2js/builtin_interceptor_test.dart b/tests/compiler/dart2js/builtin_interceptor_test.dart
|
| index 00aead3d797e5a750cd94cfbb9dfa329195e0015..24e3a2ceb685c2b84bba03eb2b138b15ca0f86ab 100644
|
| --- a/tests/compiler/dart2js/builtin_interceptor_test.dart
|
| +++ b/tests/compiler/dart2js/builtin_interceptor_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"""
|
| @@ -24,12 +26,15 @@ foo() {
|
| """;
|
|
|
| main() {
|
| - String generated = compile(TEST_ONE, entry: 'foo');
|
| - Expect.isTrue(generated.contains("return 3;"));
|
| -
|
| - generated = compile(TEST_TWO, entry: 'foo');
|
| - Expect.isTrue(generated.contains("return 3;"));
|
| -
|
| - generated = compile(TEST_THREE, entry: 'foo');
|
| - Expect.isTrue(generated.contains("push(2);"));
|
| + asyncTest(() => Future.wait([
|
| + compile(TEST_ONE, entry: 'foo', check: (String generated) {
|
| + Expect.isTrue(generated.contains("return 3;"));
|
| + }),
|
| + compile(TEST_TWO, entry: 'foo', check: (String generated) {
|
| + Expect.isTrue(generated.contains("return 3;"));
|
| + }),
|
| + compile(TEST_THREE, entry: 'foo', check: (String generated) {
|
| + Expect.isTrue(generated.contains("push(2);"));
|
| + }),
|
| + ]));
|
| }
|
|
|