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

Unified Diff: pkg/analyzer/test/src/summary/pub_summary_test.dart

Issue 2233083002: Compute both strong and spec mode unlinked bundles. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Link in strong or spec mode. Created 4 years, 4 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/summary/pub_summary.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/summary/pub_summary_test.dart
diff --git a/pkg/analyzer/test/src/summary/pub_summary_test.dart b/pkg/analyzer/test/src/summary/pub_summary_test.dart
index acc22cce95dc8fd6ed09f2f3c41f2797105ecdd4..1363fa325376fe430365d778e17128ec3b4fe80b 100644
--- a/pkg/analyzer/test/src/summary/pub_summary_test.dart
+++ b/pkg/analyzer/test/src/summary/pub_summary_test.dart
@@ -180,10 +180,10 @@ class B {}
}
// The files must be created.
- File fileA = libFolderA.parent.getChildAssumingFile('unlinked.ds');
- File fileB = libFolderB.parent.getChildAssumingFile('unlinked.ds');
- expect(fileA.exists, isTrue);
- expect(fileB.exists, isTrue);
+ _assertFileExists(libFolderA.parent, PubSummaryManager.UNLINKED_NAME);
+ _assertFileExists(libFolderA.parent, PubSummaryManager.UNLINKED_SPEC_NAME);
+ _assertFileExists(libFolderB.parent, PubSummaryManager.UNLINKED_NAME);
+ _assertFileExists(libFolderB.parent, PubSummaryManager.UNLINKED_SPEC_NAME);
}
test_getUnlinkedBundles_nullPackageMap() async {
@@ -220,6 +220,10 @@ class B {}
isFalse);
}
+ void _assertFileExists(Folder folder, String fileName) {
+ expect(folder.getChildAssumingFile(fileName).exists, isTrue);
+ }
+
void _assertLinkedNameReference(
UnlinkedUnit unlinkedUnit,
LinkedLibrary linkedLibrary,
« no previous file with comments | « pkg/analyzer/lib/src/summary/pub_summary.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698