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

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

Issue 1415463022: Use DiagnosticMessage in MockCompiler. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/override_inheritance_test.dart
diff --git a/tests/compiler/dart2js/override_inheritance_test.dart b/tests/compiler/dart2js/override_inheritance_test.dart
index c71e6b214668fae4d5b998f9ee1b1b7715cbac08..628f6253aa675563d6493d20e2f89f6d41c041fc 100644
--- a/tests/compiler/dart2js/override_inheritance_test.dart
+++ b/tests/compiler/dart2js/override_inheritance_test.dart
@@ -34,16 +34,24 @@ Future check(String source, {errors, warnings, hints, infos}) {
toList(o) => o == null ? [] : o is List ? o : [o];
- compareMessageKinds(source, toList(errors), compiler.errors, 'error');
+ compareMessageKinds(
+ source, toList(errors),
+ compiler.diagnosticCollector.errors, 'error');
- compareMessageKinds(source, toList(warnings), compiler.warnings, 'warning');
+ compareMessageKinds(
+ source, toList(warnings),
+ compiler.diagnosticCollector.warnings, 'warning');
if (infos != null) {
- compareMessageKinds(source, toList(infos), compiler.infos, 'info');
+ compareMessageKinds(
+ source, toList(infos),
+ compiler.diagnosticCollector.infos, 'info');
}
if (hints != null) {
- compareMessageKinds(source, toList(hints), compiler.hints, 'hint');
+ compareMessageKinds(
+ source, toList(hints),
+ compiler.diagnosticCollector.hints, 'hint');
}
});
}

Powered by Google App Engine
This is Rietveld 408576698