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

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

Issue 2523483002: Fix FastUri.resolveUri to handle cases like "/a.dart". (Closed)
Patch Set: Created 4 years, 1 month 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/util/fast_uri.dart ('k') | pkg/analyzer/test/src/util/fast_uri_test.dart » ('j') | 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 664882b63e9b84fed9a49b9a858b7aaa810cbb02..be1ba73935d0d1d346dc3dcf20e2d6aebb7b000d 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -3433,6 +3433,12 @@ class D extends p.C {} // Prevent "unused import" warning
expect(resynthesized.imports[1].importedLibrary.isDartCore, true);
}
+ test_import_short_absolute() {
+ testFile = '/my/project/bin/test.dart';
+ addLibrarySource('/a.dart', 'class C {}');
+ checkLibrary('import "/a.dart"; C c;');
+ }
+
test_import_show() {
addLibrary('dart:async');
checkLibrary('''
« no previous file with comments | « pkg/analyzer/lib/src/util/fast_uri.dart ('k') | pkg/analyzer/test/src/util/fast_uri_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698