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

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

Issue 1235563003: Add interfaces for a new compiler API. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Rebased 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
« no previous file with comments | « tests/compiler/dart2js/analyze_helper.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/bad_loop_test.dart
diff --git a/tests/compiler/dart2js/bad_loop_test.dart b/tests/compiler/dart2js/bad_loop_test.dart
index fd9291b76089038198a0aca7e125b1c970772185..82d8607f9202b0dd86a6ced5db8c02f94a680d9d 100644
--- a/tests/compiler/dart2js/bad_loop_test.dart
+++ b/tests/compiler/dart2js/bad_loop_test.dart
@@ -8,6 +8,7 @@ import "package:async_helper/async_helper.dart";
import 'package:compiler/compiler.dart'
show Diagnostic;
+import 'package:compiler/src/old_to_new_api.dart';
main() {
Uri script = currentDirectory.resolveUri(Platform.script);
@@ -31,13 +32,14 @@ main() {
}
}
- Compiler compiler = new Compiler(provider.readStringFromUri,
- (name, extension) => null,
- diagnosticHandler,
- libraryRoot,
- packageRoot,
- ['--analyze-only'],
- {});
+ Compiler compiler = new Compiler(
+ new LegacyCompilerInput(provider.readStringFromUri),
+ new LegacyCompilerOutput(),
+ new LegacyCompilerDiagnostics(diagnosticHandler),
+ libraryRoot,
+ packageRoot,
+ ['--analyze-only'],
+ {});
asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) {
Expect.isTrue(compiler.compilationFailed);
Expect.equals(5, errorCount);
« no previous file with comments | « tests/compiler/dart2js/analyze_helper.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