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

Unified Diff: pkg/analyzer/test/file_system/resource_uri_resolver_test.dart

Issue 2393663002: More fixes for testing under windows (Closed)
Patch Set: Created 4 years, 2 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
Index: pkg/analyzer/test/file_system/resource_uri_resolver_test.dart
diff --git a/pkg/analyzer/test/file_system/resource_uri_resolver_test.dart b/pkg/analyzer/test/file_system/resource_uri_resolver_test.dart
index 92e114806f9576bc612a66757af6046e7544a350..482149b84ff0a3f10dc757728d6973e452832a99 100644
--- a/pkg/analyzer/test/file_system/resource_uri_resolver_test.dart
+++ b/pkg/analyzer/test/file_system/resource_uri_resolver_test.dart
@@ -25,8 +25,8 @@ class ResourceUriResolverTest {
void setUp() {
provider = new MemoryResourceProvider();
resolver = new ResourceUriResolver(provider);
- provider.newFile('/test.dart', '');
- provider.newFolder('/folder');
+ provider.newFile(provider.convertPath('/test.dart'), '');
+ provider.newFolder(provider.convertPath('/folder'));
}
void test_creation() {
@@ -35,15 +35,15 @@ class ResourceUriResolverTest {
}
void test_resolveAbsolute_file() {
- var uri = new Uri(scheme: 'file', path: '/test.dart');
+ var uri = provider.pathContext.toUri(provider.convertPath('/test.dart'));
Source source = resolver.resolveAbsolute(uri);
expect(source, isNotNull);
expect(source.exists(), isTrue);
- expect(source.fullName, '/test.dart');
+ expect(source.fullName, provider.convertPath('/test.dart'));
}
void test_resolveAbsolute_folder() {
- var uri = new Uri(scheme: 'file', path: '/folder');
+ var uri = provider.pathContext.toUri(provider.convertPath('/folder'));
Source source = resolver.resolveAbsolute(uri);
expect(source, isNull);
}
@@ -61,7 +61,7 @@ class ResourceUriResolverTest {
}
void test_restoreAbsolute() {
- var uri = new Uri(scheme: 'file', path: '/test.dart');
+ var uri = provider.pathContext.toUri(provider.convertPath('/test.dart'));
Source source = resolver.resolveAbsolute(uri);
expect(source, isNotNull);
expect(resolver.restoreAbsolute(source), uri);
« no previous file with comments | « pkg/analyzer/test/file_system/memory_file_system_test.dart ('k') | pkg/analyzer/test/generated/resolver_test_case.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698