Index: tests/compiler/dart2js/no_constructor_body_test.dart |
diff --git a/tests/compiler/dart2js/no_constructor_body_test.dart b/tests/compiler/dart2js/no_constructor_body_test.dart |
index 0a11b017392d22902ce4f7b7ce7506d9184b5b5f..d2d669e016a1565a0342083ddd52a44887806639 100644 |
--- a/tests/compiler/dart2js/no_constructor_body_test.dart |
+++ b/tests/compiler/dart2js/no_constructor_body_test.dart |
@@ -17,7 +17,7 @@ main() { |
"""; |
main() { |
- String generated = compileAll(TEST); |
- Expect.isTrue( |
- generated.contains('A: {"": "Object;", static:')); |
+ compileAll(TEST).then((generated) { |
+ Expect.isTrue(generated.contains('A: {"": "Object;", static:')); |
+ }); |
} |