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

Unified Diff: pkg/analyzer/test/source/package_map_resolver_test.dart

Issue 1135073004: Fix for 'Create part' Quick Fix. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/test/generated/engine_test.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/source/package_map_resolver_test.dart
diff --git a/pkg/analyzer/test/source/package_map_resolver_test.dart b/pkg/analyzer/test/source/package_map_resolver_test.dart
index e4b0bb6d5f20c5b37504b77fed62f9074193d05e..c892947fef736e21547a1bcd6e9537fa723767ce 100644
--- a/pkg/analyzer/test/source/package_map_resolver_test.dart
+++ b/pkg/analyzer/test/source/package_map_resolver_test.dart
@@ -8,6 +8,7 @@ import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
import 'package:analyzer/source/package_map_resolver.dart';
import 'package:analyzer/src/generated/source.dart';
+import 'package:path/path.dart';
import 'package:unittest/unittest.dart';
import '../reflective_tests.dart';
@@ -144,7 +145,8 @@ class _PackageMapUriResolverTest {
Source result = resolver.resolveAbsolute(uri);
expect(result, isNotNull);
expect(result.exists(), isFalse);
- expect(result.fullName, 'package:analyzer/analyzer.dart');
+ expect(result.fullName, 'analyzer.dart');
+ expect(result.uri.toString(), 'package:analyzer/analyzer.dart');
}
void test_restoreAbsolute() {
@@ -229,6 +231,6 @@ class _PackageMapUriResolverTest {
}
Source _createFileSource(String path) {
- return new NonExistingSource(path, UriKind.FILE_URI);
+ return new NonExistingSource(path, toUri(path), UriKind.FILE_URI);
}
}
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698