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

Unified Diff: pkg/analyzer/test/src/dart/sdk/sdk_test.dart

Issue 2967503002: Fix the resolution of uri-based part-of directives in the SDK (issue 29598) (Closed)
Patch Set: moved test Created 3 years, 6 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/test/src/context/source_test.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/dart/sdk/sdk_test.dart
diff --git a/pkg/analyzer/test/src/dart/sdk/sdk_test.dart b/pkg/analyzer/test/src/dart/sdk/sdk_test.dart
index 3abf7c2625dd148fc267c38344c96093f9b7a126..e2d9071139b98f406ccaa0fb1e3b1b57014b6271 100644
--- a/pkg/analyzer/test/src/dart/sdk/sdk_test.dart
+++ b/pkg/analyzer/test/src/dart/sdk/sdk_test.dart
@@ -250,6 +250,17 @@ class FolderBasedDartSdkTest {
expect(version.length > 0, isTrue);
}
+ /**
+ * The "part" format should result in the same source as the non-part format
+ * when the file is the library file.
+ */
+ void test_mapDartUri_partFormatForLibrary() {
+ FolderBasedDartSdk sdk = _createDartSdk();
+ Source normalSource = sdk.mapDartUri('dart:core');
+ Source partSource = sdk.mapDartUri('dart:core/core.dart');
+ expect(partSource, normalSource);
+ }
+
void test_useSummary_afterContextCreation() {
FolderBasedDartSdk sdk = _createDartSdk();
sdk.context;
« no previous file with comments | « pkg/analyzer/test/src/context/source_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698