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

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

Issue 1715003002: Different approach to fixing file to URI mapping. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/sdk_io.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 f1f6b27acc4dfb248b517ea4e3ce2859662677a6..5d74e2c67b467593548f2bf9ff495bb18cffb724 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -188,6 +188,19 @@ class DirectoryBasedDartSdkTest {
expect(source.uri.toString(), "dart:html");
}
+ void test_fromFile_library_html_common_dart2js() {
+ DirectoryBasedDartSdk sdk = _createDartSdk();
+ JavaFile dirHtml = new JavaFile.relative(sdk.libraryDirectory, "html");
+ JavaFile dirCommon = new JavaFile.relative(dirHtml, "html_common");
+ JavaFile file =
+ new JavaFile.relative(dirCommon, "html_common_dart2js.dart");
+ expect(file.isFile(), isTrue);
+ Source source = sdk.fromFileUri(file.toURI());
+ expect(source, isNotNull);
+ expect(source.isInSystemLibrary, isTrue);
+ expect(source.uri.toString(), "dart:html_common/html_common_dart2js.dart");
+ }
+
void test_fromFile_part() {
DirectoryBasedDartSdk sdk = _createDartSdk();
Source source = sdk.fromFileUri(new JavaFile.relative(
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk_io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698