| 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 "package:async_helper/async_helper.dart"; | 6 import "package:async_helper/async_helper.dart"; |
| 7 import "compiler_helper.dart"; | 7 import "compiler_helper.dart"; |
| 8 | 8 |
| 9 const String TEST = "main() => [];"; | 9 const String TEST = "main() => [];"; |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class Type {} | 22 class Type {} |
| 23 class Map {} | 23 class Map {} |
| 24 class StackTrace {} | 24 class StackTrace {} |
| 25 identical(a, b) => true; | 25 identical(a, b) => true; |
| 26 const proxy = 0; | 26 const proxy = 0; |
| 27 '''; | 27 '''; |
| 28 | 28 |
| 29 main() { | 29 main() { |
| 30 asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST). | 30 asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST). |
| 31 then((generated) { | 31 then((generated) { |
| 32 MockCompiler compiler = new MockCompiler(); | 32 return MockCompiler.create((MockCompiler compiler) { |
| 33 var backend = compiler.backend; | 33 var backend = compiler.backend; |
| 34 | 34 |
| 35 // Make sure no class is emitted. | 35 // Make sure no class is emitted. |
| 36 Expect.isFalse(generated.contains(backend.emitter.finishClassesName)); | 36 Expect.isFalse(generated.contains(backend.emitter.finishClassesName)); |
| 37 }); |
| 37 })); | 38 })); |
| 38 } | 39 } |
| OLD | NEW |