Index: tests/compiler/dart2js/issue13354_test.dart |
diff --git a/tests/compiler/dart2js/issue13354_test.dart b/tests/compiler/dart2js/issue13354_test.dart |
index 14d26cacd4886af933cc8086c7e908699469d789..32826cc03a99ab6ac5b7e7c4a66371615475267c 100644 |
--- a/tests/compiler/dart2js/issue13354_test.dart |
+++ b/tests/compiler/dart2js/issue13354_test.dart |
@@ -29,28 +29,30 @@ void main() { |
Uri uri = new Uri(scheme: 'source'); |
var compiler = compilerFor(TEST, uri); |
asyncTest(() => compiler.run(uri).then((_) { |
- var commonMasks = compiler.commonMasks; |
- var typesInferrer = compiler.globalInference.typesInferrer; |
- |
- checkReturn(String name, type) { |
- var element = findElement(compiler, name); |
- Expect.equals( |
- type, |
- simplify(typesInferrer.getReturnTypeOfElement(element), compiler), |
- name); |
- } |
- |
- checkReturnInClass(String className, String methodName, type) { |
- var cls = findElement(compiler, className); |
- var element = cls.lookupLocalMember(methodName); |
- Expect.equals(type, |
- simplify(typesInferrer.getReturnTypeOfElement(element), compiler)); |
- } |
- |
- checkReturn('bar', commonMasks.uint31Type); |
- checkReturn('baz', commonMasks.functionType); |
- |
- checkReturnInClass('A', 'foo', commonMasks.uint31Type); |
- checkReturnInClass('B', 'foo', commonMasks.functionType); |
- })); |
+ var commonMasks = compiler.commonMasks; |
+ var typesInferrer = compiler.globalInference.typesInferrer; |
+ |
+ checkReturn(String name, type) { |
+ var element = findElement(compiler, name); |
+ Expect.equals( |
+ type, |
+ simplify(typesInferrer.getReturnTypeOfElement(element), compiler), |
+ name); |
+ } |
+ |
+ checkReturnInClass(String className, String methodName, type) { |
+ var cls = findElement(compiler, className); |
+ var element = cls.lookupLocalMember(methodName); |
+ Expect.equals( |
+ type, |
+ simplify( |
+ typesInferrer.getReturnTypeOfElement(element), compiler)); |
+ } |
+ |
+ checkReturn('bar', commonMasks.uint31Type); |
+ checkReturn('baz', commonMasks.functionType); |
+ |
+ checkReturnInClass('A', 'foo', commonMasks.uint31Type); |
+ checkReturnInClass('B', 'foo', commonMasks.functionType); |
+ })); |
} |