Index: tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
diff --git a/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart b/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
index f2de6cf41564910146663bf010a88cce5102d346..a306a0cf20aae3db5d04db5a8d521bd07c7ac5dd 100644 |
--- a/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
+++ b/tests/compiler/dart2js/no_duplicate_constructor_body2_test.dart |
@@ -3,6 +3,7 @@ |
// BSD-style license that can be found in the LICENSE file. |
import 'compiler_helper.dart'; |
+import "package:async_helper/async_helper.dart"; |
const String CODE = """ |
var x = 0; |
@@ -21,8 +22,9 @@ main() { |
"""; |
main() { |
- String generated = compileAll(CODE); |
- RegExp regexp = new RegExp(r'A\$0: function'); |
- Iterator<Match> matches = regexp.allMatches(generated).iterator; |
- checkNumberOfMatches(matches, 1); |
+ asyncTest(() => compileAll(CODE).then((generated) { |
+ RegExp regexp = new RegExp(r'A\$0: function'); |
+ Iterator<Match> matches = regexp.allMatches(generated).iterator; |
+ checkNumberOfMatches(matches, 1); |
+ })); |
} |