Index: tests/compiler/dart2js/types_of_captured_variables_test.dart |
diff --git a/tests/compiler/dart2js/types_of_captured_variables_test.dart b/tests/compiler/dart2js/types_of_captured_variables_test.dart |
index 3376b657066adc67bae04f297248409cd650cc75..9e802bd153a70387425430856c7f11777c864fe9 100644 |
--- a/tests/compiler/dart2js/types_of_captured_variables_test.dart |
+++ b/tests/compiler/dart2js/types_of_captured_variables_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 TEST1 = r""" |
@@ -35,15 +36,18 @@ main() { |
main() { |
// Test that we know the type of captured, non-mutated variables. |
- String generated = compileAll(TEST1); |
- Expect.isTrue(generated.contains('+ 3')); |
+ asyncTest(() => compileAll(TEST1).then((generated) { |
+ Expect.isTrue(generated.contains('+ 3')); |
+ })); |
// Test that we know the type of captured, mutated variables. |
- generated = compileAll(TEST2); |
- Expect.isTrue(generated.contains('+ 3')); |
+ asyncTest(() => compileAll(TEST2).then((generated) { |
+ Expect.isTrue(generated.contains('+ 3')); |
+ })); |
// Test that we know when types of a captured, mutated variable |
// conflict. |
- generated = compileAll(TEST3); |
- Expect.isFalse(generated.contains('+ 3')); |
+ asyncTest(() => compileAll(TEST3).then((generated) { |
+ Expect.isFalse(generated.contains('+ 3')); |
+ })); |
} |