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