Index: tests/compiler/dart2js/tree_shaking_test.dart |
diff --git a/tests/compiler/dart2js/tree_shaking_test.dart b/tests/compiler/dart2js/tree_shaking_test.dart |
index 51580156a3a598901f66911c64d8ab8fef84124b..541956f9549bdeb9907ee78e8fdb04aa9086f801 100644 |
--- a/tests/compiler/dart2js/tree_shaking_test.dart |
+++ b/tests/compiler/dart2js/tree_shaking_test.dart |
@@ -3,6 +3,7 @@ |
// BSD-style license that can be found in the LICENSE file. |
import "package:expect/expect.dart"; |
+import "package:async_helper/async_helper.dart"; |
import 'compiler_helper.dart'; |
const String TEST = r""" |
@@ -25,8 +26,9 @@ main() { |
"""; |
void main() { |
- String generated = compileAll(TEST); |
- Expect.isTrue(generated.contains('return 42')); |
- Expect.isTrue(generated.contains('return 54')); |
- Expect.isFalse(generated.contains('return 68')); |
+ asyncTest(() => compileAll(TEST).then((generated) { |
+ Expect.isTrue(generated.contains('return 42')); |
+ Expect.isTrue(generated.contains('return 54')); |
+ Expect.isFalse(generated.contains('return 68')); |
+ })); |
} |