Index: test/testing.dart |
diff --git a/test/testing.dart b/test/testing.dart |
index 591a525e52ece7c4e3afe9685330c6c03b1e9709..d1335be04f121cb05c2b36b85f0685381534558c 100644 |
--- a/test/testing.dart |
+++ b/test/testing.dart |
@@ -7,33 +7,9 @@ library dev_compiler.src.testing; |
import 'dart:mirrors'; |
import 'package:analyzer/file_system/file_system.dart'; |
import 'package:analyzer/file_system/memory_file_system.dart'; |
-import 'package:analyzer/src/generated/engine.dart' |
- show AnalysisContext, AnalysisEngine, AnalysisOptionsImpl; |
import 'package:analyzer/src/generated/source.dart'; |
-import 'package:cli_util/cli_util.dart' show getSdkDir; |
import 'package:path/path.dart' as path; |
-import 'package:dev_compiler/src/analysis_context.dart'; |
-import 'package:dev_compiler/src/options.dart'; |
- |
-/// Shared analysis context used for compilation. |
-final AnalysisContext realSdkContext = () { |
- var context = createAnalysisContextWithSources(new SourceResolverOptions( |
- dartSdkPath: getSdkDir().path, |
- customUrlMappings: { |
- 'package:expect/expect.dart': _testCodegenPath('expect.dart'), |
- 'package:async_helper/async_helper.dart': |
- _testCodegenPath('async_helper.dart'), |
- 'package:unittest/unittest.dart': _testCodegenPath('unittest.dart'), |
- 'package:dom/dom.dart': _testCodegenPath('sunflower', 'dom.dart') |
- })); |
- (context.analysisOptions as AnalysisOptionsImpl).cacheSize = 512; |
- return context; |
-}(); |
- |
-String _testCodegenPath(String p1, [String p2]) => |
- path.join(testDirectory, 'codegen', p1, p2); |
- |
final String testDirectory = |
path.dirname((reflectClass(_TestUtils).owner as LibraryMirror).uri.path); |