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

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

Issue 2690083002: Add MultiSourceInformationStrategy (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
« no previous file with comments | « tests/compiler/dart2js/exit_code_test.dart ('k') | tests/compiler/dart2js/output_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/output_collector.dart
diff --git a/tests/compiler/dart2js/output_collector.dart b/tests/compiler/dart2js/output_collector.dart
index 20d85408221c4dd7d966714360970921c510c323..0aa2480bda12603e4d3b365509ae6c8d0bd767a7 100644
--- a/tests/compiler/dart2js/output_collector.dart
+++ b/tests/compiler/dart2js/output_collector.dart
@@ -44,9 +44,17 @@ class OutputCollector implements CompilerOutput {
String getOutput(String name, OutputType type) {
Map<String, BufferedOutputSink> sinkMap = outputMap[type];
- if (sinkMap == null) return null;
+ if (sinkMap == null) {
+ print("No output available for $type.");
+ return null;
+ }
BufferedOutputSink sink = sinkMap[name];
- return sink != null ? sink.text : null;
+ if (sink == null) {
+ print("Output '$name' not found for $type. Available: ${sinkMap.keys}");
+ return null;
+ } else {
+ return sink.text;
+ }
}
/// `true` if any output has been collected.
« no previous file with comments | « tests/compiler/dart2js/exit_code_test.dart ('k') | tests/compiler/dart2js/output_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698