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

Unified Diff: tests/compiler/dart2js/analyze_only_test.dart

Issue 2690063002: Refactor CompilerOutput (Closed)
Patch Set: Updated cf. comments Created 3 years, 10 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 | « pkg/compiler/lib/src/tracer.dart ('k') | tests/compiler/dart2js/bad_output_io_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/analyze_only_test.dart
diff --git a/tests/compiler/dart2js/analyze_only_test.dart b/tests/compiler/dart2js/analyze_only_test.dart
index 13e7e533216ebcd8a0099cd416a38182b435e5db..74683ca81e1bee76ca0a693ce03428c8471b61b1 100644
--- a/tests/compiler/dart2js/analyze_only_test.dart
+++ b/tests/compiler/dart2js/analyze_only_test.dart
@@ -10,10 +10,12 @@ import 'dart:async';
import "package:async_helper/async_helper.dart";
import '../../utils/dummy_compiler_test.dart' as dummy;
-import 'package:compiler/compiler.dart';
+import 'package:compiler/compiler_new.dart';
+import 'package:compiler/src/options.dart';
import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/diagnostics/messages.dart'
show MessageKind, MessageTemplate;
+import 'package:compiler/src/old_to_new_api.dart';
import 'output_collector.dart';
@@ -43,16 +45,17 @@ runCompiler(String main, List<String> options,
asyncStart();
OutputCollector outputCollector = new OutputCollector();
Future<CompilationResult> result = compile(
- new Uri(scheme: 'main'),
- new Uri(scheme: 'lib', path: '/'),
- new Uri(scheme: 'package', path: '/'),
- localProvider,
- localHandler,
- options,
+ new CompilerOptions.parse(
+ entryPoint: new Uri(scheme: 'main'),
+ libraryRoot: new Uri(scheme: 'lib', path: '/'),
+ packageRoot: new Uri(scheme: 'package', path: '/'),
+ options: options),
+ new LegacyCompilerInput(localProvider),
+ new LegacyCompilerDiagnostics(localHandler),
outputCollector);
result
.then((_) {
- onValue(outputCollector.getOutput('', 'js'), errors, warnings);
+ onValue(outputCollector.getOutput('', OutputType.js), errors, warnings);
}, onError: (e, st) {
throw 'Compilation failed: ${e} ${st}';
})
« no previous file with comments | « pkg/compiler/lib/src/tracer.dart ('k') | tests/compiler/dart2js/bad_output_io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698