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

Unified Diff: test/testing.dart

Issue 1355893003: Rewire DDC to use the analyzer task model (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Update pubspec Created 5 years, 2 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
« no previous file with comments | « test/codegen/expect/js_test.txt ('k') | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/testing.dart
diff --git a/test/testing.dart b/test/testing.dart
index 818cd037e9831109a9427c03b6193471dded3c79..30f9e056308d42bae68d6e5c97ca9e56822f5e4d 100644
--- a/test/testing.dart
+++ b/test/testing.dart
@@ -38,7 +38,7 @@ final realSdkContext = createAnalysisContextWithSources(
_testCodegenPath('async_helper.dart'),
'package:unittest/unittest.dart': _testCodegenPath('unittest.dart'),
'package:dom/dom.dart': _testCodegenPath('sunflower', 'dom.dart')
- }))..analysisOptions = (new AnalysisOptionsImpl()..cacheSize = 512);
+ }))..analysisOptions.cacheSize = 512;
String _testCodegenPath(String p1, [String p2]) =>
path.join(testDirectory, 'codegen', p1, p2);
@@ -86,7 +86,10 @@ void testChecker(String name, Map<String, String> testFiles,
var provider = createTestResourceProvider(testFiles);
var uriResolver = new TestUriResolver(provider);
+ // Enable task model strong mode
+ AnalysisEngine.instance.useTaskModel = true;
var context = AnalysisEngine.instance.createAnalysisContext();
+ context.analysisOptions.strongMode = true;
context.sourceFactory = createSourceFactory(
new SourceResolverOptions(
customUrlMappings: customUrlMappings,
« no previous file with comments | « test/codegen/expect/js_test.txt ('k') | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698