Index: tests/standalone/io/windows_file_system_links_test.dart |
diff --git a/tests/standalone/io/windows_file_system_links_test.dart b/tests/standalone/io/windows_file_system_links_test.dart |
index f161b0e12aea5945dce03cb85b4c3bc0e929dace..4e26ec7392689187a9c41b3357b92f7de65bbb01 100644 |
--- a/tests/standalone/io/windows_file_system_links_test.dart |
+++ b/tests/standalone/io/windows_file_system_links_test.dart |
@@ -30,13 +30,13 @@ testJunctionTypeDelete() { |
// Test Junction pointing to a missing directory. |
new Directory(x).deleteSync(); |
- Expect.isTrue(new Directory(y).existsSync()); |
+ Expect.isTrue(new Link(y).existsSync()); |
Expect.isFalse(new Directory(x).existsSync()); |
Expect.isTrue(FileSystemEntity.isLinkSync(y)); |
Expect.isFalse(FileSystemEntity.isLinkSync(x)); |
Expect.isFalse(FileSystemEntity.isDirectorySync(y)); |
Expect.isFalse(FileSystemEntity.isDirectorySync(x)); |
- Expect.equals(FileSystemEntityType.NOT_FOUND, |
+ Expect.equals(FileSystemEntityType.LINK, |
FileSystemEntity.typeSync(y)); |
Expect.equals(FileSystemEntityType.NOT_FOUND, |
FileSystemEntity.typeSync(x)); |
@@ -47,7 +47,7 @@ testJunctionTypeDelete() { |
Expect.equals(x, new Link(y).targetSync()); |
// Delete Junction pointing to a missing directory. |
- new Directory(y).deleteSync(); |
+ new Link(y).deleteSync(); |
Expect.isFalse(FileSystemEntity.isLinkSync(y)); |
Expect.equals(FileSystemEntityType.NOT_FOUND, |
FileSystemEntity.typeSync(y)); |