OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
6 | 6 |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 import 'compiler_helper.dart'; | 8 import 'compiler_helper.dart'; |
9 import 'package:compiler/src/types/types.dart'; | 9 import 'package:compiler/src/types/types.dart'; |
10 import 'parser_helper.dart'; | |
11 import 'type_mask_test_helper.dart'; | 10 import 'type_mask_test_helper.dart'; |
12 | 11 |
13 const String TEST1 = """ | 12 const String TEST1 = """ |
14 class A { | 13 class A { |
15 noSuchMethod(im) => 42; | 14 noSuchMethod(im) => 42; |
16 } | 15 } |
17 | 16 |
18 class B extends A { | 17 class B extends A { |
19 foo(); | 18 foo(); |
20 } | 19 } |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 var compiler4 = compilerFor(TEST4, uri); | 214 var compiler4 = compilerFor(TEST4, uri); |
216 asyncTest(() => compiler4.runCompiler(uri).then((_) { | 215 asyncTest(() => compiler4.runCompiler(uri).then((_) { |
217 checkReturn(compiler4, 'test1', const TypeMask.nonNullEmpty()); | 216 checkReturn(compiler4, 'test1', const TypeMask.nonNullEmpty()); |
218 checkReturn(compiler4, 'test2', compiler4.typesTask.mapType); | 217 checkReturn(compiler4, 'test2', compiler4.typesTask.mapType); |
219 checkReturn(compiler4, 'test3', compiler4.typesTask.mapType); | 218 checkReturn(compiler4, 'test3', compiler4.typesTask.mapType); |
220 checkReturn(compiler4, 'test4', compiler4.typesTask.mapType); | 219 checkReturn(compiler4, 'test4', compiler4.typesTask.mapType); |
221 checkReturn(compiler4, 'test5', compiler4.typesTask.mapType); | 220 checkReturn(compiler4, 'test5', compiler4.typesTask.mapType); |
222 checkReturn(compiler4, 'test6', compiler4.typesTask.mapType); | 221 checkReturn(compiler4, 'test6', compiler4.typesTask.mapType); |
223 })); | 222 })); |
224 } | 223 } |
OLD | NEW |