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

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

Issue 2789113005: Fix for resynthesis when a part URI is empty. (Closed)
Patch Set: Created 3 years, 8 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/link.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/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 38455bc113f2785324e3c30d03c3fcbe5da037be..abd1c184d3717d76e9539330d74be4342dda7d59 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -10102,6 +10102,29 @@ class C {
}
}
+ test_invalidUri_part_emptyUri() {
+ allowMissingFiles = true;
+ var library = checkLibrary(r'''
+part '';
+class B extends A {}
+''');
+ if (isStrongMode) {
+ checkElementText(
+ library,
+ r'''
+class B {
+}
+''');
+ } else {
+ checkElementText(
+ library,
+ r'''
+class B {
+}
+''');
+ }
+ }
+
test_invalidUris() {
allowMissingFiles = true;
var library = checkLibrary(r'''
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698