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

Unified Diff: tests/compiler/dart2js/private_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/private_test.dart
diff --git a/tests/compiler/dart2js/private_test.dart b/tests/compiler/dart2js/private_test.dart
index eba8e31154857e0514dc319b29a8d7cf32a4bb14..fbfba80483d8827808e3839197f7d535f5cce023 100644
--- a/tests/compiler/dart2js/private_test.dart
+++ b/tests/compiler/dart2js/private_test.dart
@@ -72,7 +72,8 @@ analyze(String text, [expectedWarnings]) {
Uri uri = Uri.parse('src:public');
compiler.registerSource(uri, source);
return compiler.run(uri).then((_) {
- compareWarningKinds(text, expectedWarnings, compiler.warnings);
+ DiagnosticCollector collector = compiler.diagnosticCollector;
+ compareWarningKinds(text, expectedWarnings, collector.warnings);
});
};
}

Powered by Google App Engine
This is Rietveld 408576698