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

Unified Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 1835643002: Fix for resolveRelativeUri() when the containedUri is absolute. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/generated/utilities_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/generated/all_the_rest_test.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
index 54cf5b00dcff21bf10c1cea634492045de1d140f..e7963a5b40b8f59d87d143433ae2259c2f0e2246 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -4164,6 +4164,13 @@ class ResolveRelativeUriTest {
expect(relative.toString(), "dart:test/c/lib.dart");
}
+ void test_resolveRelative_dart_dartUri() {
+ Uri uri = parseUriWithException('dart:foo');
+ Uri relative = resolveRelativeUri(uri, parseUriWithException('dart:bar'));
+ expect(relative, isNotNull);
+ expect(relative.toString(), 'dart:bar');
+ }
+
void test_resolveRelative_dart_filePathWithParent() {
Uri uri = parseUriWithException("dart:test/b/test.dart");
Uri relative =
@@ -4186,6 +4193,13 @@ class ResolveRelativeUriTest {
expect(relative.toString(), "package:lib.dart");
}
+ void test_resolveRelative_package_dartUri() {
+ Uri uri = parseUriWithException('package:foo/bar.dart');
+ Uri relative = resolveRelativeUri(uri, parseUriWithException('dart:test'));
+ expect(relative, isNotNull);
+ expect(relative.toString(), 'dart:test');
+ }
+
void test_resolveRelative_package_filePath() {
Uri uri = parseUriWithException("package:b/test.dart");
Uri relative = resolveRelativeUri(uri, parseUriWithException("c/lib.dart"));
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698