| 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 "compiler_helper.dart"; | 6 import "compiler_helper.dart"; |
| 6 | 7 |
| 7 const String TEST = "main() => [];"; | 8 const String TEST = "main() => [];"; |
| 8 | 9 |
| 9 const String DEFAULT_CORELIB_WITH_LIST = r''' | 10 const String DEFAULT_CORELIB_WITH_LIST = r''' |
| 10 class Object {} | 11 class Object {} |
| 11 class bool {} | 12 class bool {} |
| 12 abstract class List {} | 13 abstract class List {} |
| 13 class num {} | 14 class num {} |
| 14 class int {} | 15 class int {} |
| 15 class double {} | 16 class double {} |
| 16 class String {} | 17 class String {} |
| 17 class Function {} | 18 class Function {} |
| 18 class Type {} | 19 class Type {} |
| 19 class Map {} | 20 class Map {} |
| 20 '''; | 21 '''; |
| 21 | 22 |
| 22 main() { | 23 main() { |
| 23 String generated = compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST); | 24 String generated = compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST); |
| 24 MockCompiler compiler = new MockCompiler(); | 25 MockCompiler compiler = new MockCompiler(); |
| 25 var backend = compiler.backend; | 26 var backend = compiler.backend; |
| 26 | 27 |
| 27 // Make sure no class is emitted. | 28 // Make sure no class is emitted. |
| 28 Expect.isFalse(generated.contains(backend.emitter.finishClassesName)); | 29 Expect.isFalse(generated.contains(backend.emitter.finishClassesName)); |
| 29 } | 30 } |
| OLD | NEW |