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 db6a1f33b7982c3a73ee558d4ca30827be74359d..721efd62587a74f4f0b4c4c028f8b471347dda60 100644 |
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart |
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart |
@@ -7971,6 +7971,18 @@ class FileUriResolverTest { |
resolver.resolveAbsolute(parseUriWithException("dart:core")); |
expect(result, isNull); |
} |
+ |
+ void test_restore() { |
+ UriResolver resolver = new FileUriResolver(); |
+ Uri uri = parseUriWithException('file:///foo/bar.dart'); |
+ Source source = resolver.resolveAbsolute(uri); |
+ expect(source, isNotNull); |
+ expect(resolver.restoreAbsolute(source), uri); |
+ expect( |
+ resolver.restoreAbsolute( |
+ new NonExistingSource(source.fullName, null, null)), |
+ uri); |
+ } |
} |
@reflectiveTest |