Index: dart/tests/compiler/dart2js/mirrors_metadata_test.dart |
=================================================================== |
--- dart/tests/compiler/dart2js/mirrors_metadata_test.dart (revision 30037) |
+++ dart/tests/compiler/dart2js/mirrors_metadata_test.dart (working copy) |
@@ -3,30 +3,10 @@ |
// BSD-style license that can be found in the LICENSE file. |
import 'package:expect/expect.dart'; |
-import 'dart:async'; |
import "package:async_helper/async_helper.dart"; |
-import 'dart:io'; |
-import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart'; |
-import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart'; |
-import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart'; |
-import '../../../sdk/lib/_internal/compiler/implementation/source_file_provider.dart'; |
-import 'mock_compiler.dart'; |
+import 'dart:async'; |
+import 'mirror_system_helper.dart'; |
-const String SOURCE = 'source'; |
-Uri SOURCE_URI = new Uri(scheme: SOURCE, path: SOURCE); |
- |
-Future<MirrorSystem> createMirrorSystem(String source) { |
- MockCompiler compiler = new MockCompiler( |
- analyzeOnly: true, |
- analyzeAll: true, |
- preserveComments: true); |
- compiler.registerSource(SOURCE_URI, source); |
- compiler.librariesToAnalyzeWhenRun = <Uri>[SOURCE_URI]; |
- return compiler.runCompiler(null).then((_) { |
- return new Dart2JsMirrorSystem(compiler); |
- }); |
-} |
- |
void validateDeclarationComment(String code, |
String text, |
String trimmedText, |