Index: tests/compiler/dart2js/simple_inferrer_relations_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_relations_test.dart b/tests/compiler/dart2js/simple_inferrer_relations_test.dart |
index 4b3af4a82f2501ce65861cf93729e9178d863985..313154afa66a66e8e9f27a5c76dd0ab2649b4bc2 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_relations_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_relations_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 |
'../../../sdk/lib/_internal/compiler/implementation/types/types.dart' |
show TypeMask; |
@@ -51,9 +52,10 @@ main() { |
"""; |
void main() { |
- String generated = compileAll(TEST); |
- if (generated.contains(r'=== true')) { |
- print(generated); |
- Expect.fail("missing elision of '=== true'"); |
- } |
+ asyncTest(() => compileAll(TEST).then((generated) { |
+ if (generated.contains(r'=== true')) { |
+ print(generated); |
+ Expect.fail("missing elision of '=== true'"); |
+ } |
+ })); |
} |