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

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

Issue 2690063002: Refactor CompilerOutput (Closed)
Patch Set: Cleanup. 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
Index: tests/compiler/dart2js/compiler_test.dart
diff --git a/tests/compiler/dart2js/compiler_test.dart b/tests/compiler/dart2js/compiler_test.dart
index 3e595c8343104137f4cb7161e1650c291ea72d7c..38377d112de17166c5da1b7bb313fa472bdc2237 100644
--- a/tests/compiler/dart2js/compiler_test.dart
+++ b/tests/compiler/dart2js/compiler_test.dart
@@ -7,6 +7,7 @@ import "dart:async";
import "package:async_helper/async_helper.dart";
import 'package:compiler/compiler.dart';
import "package:compiler/src/elements/elements.dart";
+import "package:compiler/src/old_to_new_api.dart";
import "package:expect/expect.dart";
import "mock_compiler.dart";
@@ -18,12 +19,12 @@ Future testErrorHandling() {
return compiler.init().then((_) {
compiler.parseScript('NoSuchPrefix.NoSuchType foo() {}');
FunctionElement foo = compiler.mainApp.find('foo');
- compiler.diagnosticHandler =
+ compiler.diagnosticHandler = new LegacyCompilerDiagnostics(
(Uri uri, int begin, int end, String message, Diagnostic kind) {
if (kind == Diagnostic.WARNING) {
Expect.equals(foo, compiler.currentElement);
}
- };
+ });
foo.computeType(compiler.resolution);
Expect.equals(1, compiler.diagnosticCollector.warnings.length);
});

Powered by Google App Engine
This is Rietveld 408576698