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

Unified Diff: test/report_test.dart

Issue 1235503010: fixes #219, able to compile multiple entry points (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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/report_test.dart
diff --git a/test/report_test.dart b/test/report_test.dart
index 1d1d81e0f88febecc23090bf7bb7175b5a3dda5b..a98b8a1844864230dae3c8a4ba56bf1b0815d725 100644
--- a/test/report_test.dart
+++ b/test/report_test.dart
@@ -14,7 +14,8 @@ import 'package:dev_compiler/src/analysis_context.dart';
import 'package:dev_compiler/src/options.dart';
import 'package:dev_compiler/src/report.dart';
import 'package:dev_compiler/src/summary.dart';
-import 'package:dev_compiler/src/testing.dart';
+
+import 'testing.dart';
void main() {
test('toJson/parse', () {
@@ -36,13 +37,12 @@ void main() {
var provider = createTestResourceProvider(files);
var uriResolver = new TestUriResolver(provider);
- var srcOpts = new SourceResolverOptions(
- entryPointFile: '/main.dart', useMockSdk: true);
+ var srcOpts = new SourceResolverOptions(useMockSdk: true);
var context = createAnalysisContextWithSources(
new StrongModeOptions(), srcOpts, fileResolvers: [uriResolver]);
var reporter = new SummaryReporter(context);
- new Compiler(new CompilerOptions(sourceOptions: srcOpts),
- context: context, reporter: reporter).run();
+ new BatchCompiler(context, new CompilerOptions(sourceOptions: srcOpts),
+ reporter: reporter).compileFromUriString('/main.dart');
_verifySummary(GlobalSummary summary) {
var mainLib = summary.loose['file:///main.dart'];
« lib/src/summary.dart ('K') | « test/end_to_end_test.dart ('k') | test/test_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698