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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 2347123004: Issue 27374. Include all configuration sources into REFERENCED_SOURCES. (Closed)
Patch Set: Created 4 years, 3 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 | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index cd5095c798be822d371862237e7dea50e8cccf88..b2205cce07dc1012a423e3a16dd28bda6071232f 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -3274,6 +3274,16 @@ export 'bar.dart'
expect(export.selectedSource.shortName, 'bar_io.dart');
expect(export.configurations[0].uriSource.shortName, 'bar_io.dart');
expect(export.configurations[1].uriSource.shortName, 'bar_html.dart');
+
+ var refSources = outputs[REFERENCED_SOURCES] as List<Source>;
+ var refNames = refSources.map((source) => source.shortName).toList();
+ expect(refNames, contains('test.dart'));
+ expect(refNames, contains('foo.dart'));
+ expect(refNames, contains('foo_io.dart'));
+ expect(refNames, contains('foo_html.dart'));
+ expect(refNames, contains('bar.dart'));
+ expect(refNames, contains('bar_io.dart'));
+ expect(refNames, contains('bar_html.dart'));
}
test_perform_library_configurations_bool2() {
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698