Index: tests/compiler/dart2js/simple_inferrer_unregister_call_test.dart |
diff --git a/tests/compiler/dart2js/simple_inferrer_unregister_call_test.dart b/tests/compiler/dart2js/simple_inferrer_unregister_call_test.dart |
index 81bbe0f7d235b90bab6497173b5d2a85e7b1b8f1..35a2994e3f1035e8f9d1b58b18a7083b4a9a401d 100644 |
--- a/tests/compiler/dart2js/simple_inferrer_unregister_call_test.dart |
+++ b/tests/compiler/dart2js/simple_inferrer_unregister_call_test.dart |
@@ -3,7 +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'; |
import 'parser_helper.dart'; |
@@ -32,14 +32,15 @@ main() { |
void main() { |
Uri uri = new Uri(scheme: 'source'); |
var compiler = compilerFor(TEST, uri); |
- compiler.runCompiler(uri); |
- var typesInferrer = compiler.typesTask.typesInferrer; |
+ asyncTest(() => compiler.runCompiler(uri).then((_) { |
+ var typesInferrer = compiler.typesTask.typesInferrer; |
- checkReturnInClass(String className, String methodName, type) { |
- var cls = findElement(compiler, className); |
- var element = cls.lookupLocalMember(buildSourceString(methodName)); |
- Expect.equals(type, typesInferrer.getReturnTypeOfElement(element)); |
- } |
+ checkReturnInClass(String className, String methodName, type) { |
+ var cls = findElement(compiler, className); |
+ var element = cls.lookupLocalMember(buildSourceString(methodName)); |
+ Expect.equals(type, typesInferrer.getReturnTypeOfElement(element)); |
+ } |
- checkReturnInClass('A', '+', compiler.typesTask.intType); |
+ checkReturnInClass('A', '+', compiler.typesTask.intType); |
+ })); |
} |