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

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

Issue 2411423003: Add prefix to path import to work around breaking change (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
« no previous file with comments | « no previous file | pkg/analyzer/test/file_system/physical_resource_provider_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/file_system/memory_file_system_test.dart
diff --git a/pkg/analyzer/test/file_system/memory_file_system_test.dart b/pkg/analyzer/test/file_system/memory_file_system_test.dart
index 527b79912563bffffb489451dfe7761287dfa5c6..abc373f6d2237d8e98902af3e2e894b59214acca 100644
--- a/pkg/analyzer/test/file_system/memory_file_system_test.dart
+++ b/pkg/analyzer/test/file_system/memory_file_system_test.dart
@@ -12,7 +12,7 @@ import 'package:analyzer/file_system/memory_file_system.dart';
import 'package:analyzer/src/generated/engine.dart' show TimestampedData;
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/generated/utilities_dart.dart';
-import 'package:path/path.dart';
+import 'package:path/path.dart' as pathos;
import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:watcher/watcher.dart';
@@ -464,7 +464,7 @@ class MemoryFileSourceExistingTest {
void test_encoding() {
String expected = 'file:///foo/test.dart';
- if (provider.pathContext.style == windows.style) {
+ if (provider.pathContext.style == pathos.windows.style) {
expected = 'file:///C:/foo/test.dart';
}
expect(source.encoding, expected);
@@ -551,7 +551,7 @@ class MemoryFileSourceNotExistingTest {
void test_encoding() {
String expected = 'file:///foo/test.dart';
- if (provider.pathContext.style == windows.style) {
+ if (provider.pathContext.style == pathos.windows.style) {
expected = 'file:///C:/foo/test.dart';
}
expect(source.encoding, expected);
@@ -616,13 +616,6 @@ class MemoryResourceProviderTest {
expect(file.exists, isFalse);
}
- test_getModificationTimes() async {
- File file = provider.newFile(provider.convertPath('/test.dart'), '');
- Source source = file.createSource();
- List<int> times = await provider.getModificationTimes([source]);
- expect(times, [source.modificationStamp]);
- }
-
test_getFolder_existing() async {
String path = provider.convertPath('/foo/bar');
provider.newFolder(path);
@@ -640,6 +633,13 @@ class MemoryResourceProviderTest {
expect(folder.exists, isFalse);
}
+ test_getModificationTimes() async {
+ File file = provider.newFile(provider.convertPath('/test.dart'), '');
+ Source source = file.createSource();
+ List<int> times = await provider.getModificationTimes([source]);
+ expect(times, [source.modificationStamp]);
+ }
+
void test_getStateLocation_uniqueness() {
String idOne = 'one';
Folder folderOne = provider.getStateLocation(idOne);
« no previous file with comments | « no previous file | pkg/analyzer/test/file_system/physical_resource_provider_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698