Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Unified Diff: test/testing.dart

Issue 1840203002: More analyzer updates, and handle negative_tests (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« lib/src/report.dart ('K') | « test/end_to_end_test.dart ('k') | tool/node_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698