Index: tests/compiler/dart2js/closure_codegen_test.dart |
diff --git a/tests/compiler/dart2js/closure_codegen_test.dart b/tests/compiler/dart2js/closure_codegen_test.dart |
index b4399a843078bb16482e9e6c91050bc6b593f76c..0474b0227b33e798e887ba8f619bc110a9c53051 100644 |
--- a/tests/compiler/dart2js/closure_codegen_test.dart |
+++ b/tests/compiler/dart2js/closure_codegen_test.dart |
@@ -4,6 +4,7 @@ |
// Test that parameters keep their names in the output. |
import "package:expect/expect.dart"; |
+import "package:async_helper/async_helper.dart"; |
import 'compiler_helper.dart'; |
import 'parser_helper.dart'; |
@@ -52,10 +53,11 @@ closureInvocation() { |
// Make sure that the bailout version does not introduce a second version of |
// the closure. |
closureBailout() { |
- String generated = compileAll(TEST_BAILOUT); |
- RegExp regexp = new RegExp(r'call\$0: function'); |
- Iterator<Match> matches = regexp.allMatches(generated).iterator; |
- checkNumberOfMatches(matches, 1); |
+ asyncTest(() => compileAll(TEST_BAILOUT).then((generated) { |
+ RegExp regexp = new RegExp(r'call\$0: function'); |
+ Iterator<Match> matches = regexp.allMatches(generated).iterator; |
+ checkNumberOfMatches(matches, 1); |
+ })); |
} |
main() { |