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 'dart:async'; | 6 import 'dart:async'; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 import 'memory_compiler.dart' show compilerFor; | 8 import 'memory_compiler.dart' show compilerFor; |
9 import 'package:compiler/implementation/apiimpl.dart' show | 9 import 'package:compiler/src/apiimpl.dart' show |
10 Compiler; | 10 Compiler; |
11 import 'package:compiler/implementation/dart_backend/dart_backend.dart' show | 11 import 'package:compiler/src/dart_backend/dart_backend.dart' show |
12 DartBackend; | 12 DartBackend; |
13 import 'package:compiler/implementation/tree/tree.dart' show | 13 import 'package:compiler/src/tree/tree.dart' show |
14 Identifier, Node, Send; | 14 Identifier, Node, Send; |
15 import 'package:compiler/implementation/mirror_renamer/mirror_renamer.dart' show | 15 import 'package:compiler/src/mirror_renamer/mirror_renamer.dart' show |
16 MirrorRenamerImpl; | 16 MirrorRenamerImpl; |
17 | 17 |
18 main() { | 18 main() { |
19 testUniqueMinification(); | 19 testUniqueMinification(); |
20 testNoUniqueMinification(); | 20 testNoUniqueMinification(); |
21 } | 21 } |
22 | 22 |
23 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { | 23 Future<Compiler> runCompiler({useMirrorHelperLibrary: false, minify: false}) { |
24 List<String> options = ['--output-type=dart']; | 24 List<String> options = ['--output-type=dart']; |
25 if (minify) { | 25 if (minify) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 class Foo { | 78 class Foo { |
79 noSuchMethod(invocation) { | 79 noSuchMethod(invocation) { |
80 MirrorSystem.getName(null); | 80 MirrorSystem.getName(null); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 main(hest) { | 84 main(hest) { |
85 new Foo().fisk(); | 85 new Foo().fisk(); |
86 } | 86 } |
87 """}; | 87 """}; |
OLD | NEW |