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

Unified Diff: pkg/front_end/test/src/base/file_repository_test.dart

Issue 2643033003: Clean up hacky handling of "dart:" URIs in incremental resolved AST generator. (Closed)
Patch Set: Created 3 years, 11 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/front_end/lib/src/incremental_resolved_ast_generator_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/src/base/file_repository_test.dart
diff --git a/pkg/front_end/test/src/base/file_repository_test.dart b/pkg/front_end/test/src/base/file_repository_test.dart
index f911ba3443d2f233ae45bb455b85732ae63501fa..f6917aaf243c4fa18931e4205c31333005c67320 100644
--- a/pkg/front_end/test/src/base/file_repository_test.dart
+++ b/pkg/front_end/test/src/base/file_repository_test.dart
@@ -44,6 +44,15 @@ class FileRepositoryTest {
expect(fileRepository.pathForUri(uri2), path2);
}
+ test_pathForUri_allocate() {
+ var uri1 = Uri.parse('file:///foo/bar.dart');
+ var path1 = fileRepository.pathForUri(uri1, allocate: true);
+ var uri2 = Uri.parse('package:foo/bar.dart');
+ var path2 = fileRepository.pathForUri(uri2, allocate: true);
+ expect(fileRepository.store(uri1, 'contents1'), path1);
+ expect(fileRepository.store(uri2, 'contents2'), path2);
+ }
+
test_store() {
var uri = Uri.parse('file:///foo/bar.dart');
var path = fileRepository.store(uri, 'contents1');
« no previous file with comments | « pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698