Index: tests/standalone/io/file_error_test.dart |
diff --git a/tests/standalone/io/file_error_test.dart b/tests/standalone/io/file_error_test.dart |
index 8b1049a4a169d7853277a918f7eb983e2ec35960..d8dc8aadf0947dd19adc9db0d1dcd07778a15359 100644 |
--- a/tests/standalone/io/file_error_test.dart |
+++ b/tests/standalone/io/file_error_test.dart |
@@ -130,29 +130,29 @@ void testCreateInNonExistentDirectory() { |
}); |
} |
-bool checkResolveSymbolicLinksOnNonExistentDirectoryException(e) { |
+bool checkFullPathOnNonExistentDirectoryException(e) { |
Expect.isTrue(e is FileException); |
Expect.isTrue(e.osError != null); |
- Expect.isTrue(e.toString().indexOf("Cannot resolve symbolic links") != -1); |
+ Expect.isTrue(e.toString().indexOf("Cannot retrieve full path") != -1); |
// File not not found has error code 2 on all supported platforms. |
Expect.equals(2, e.osError.errorCode); |
return true; |
} |
-void testResolveSymbolicLinksOnNonExistentDirectory() { |
+void testFullPathOnNonExistentDirectory() { |
asyncStart(); |
Directory temp = tempDir(); |
var file = new File("${temp.path}/nonExistentDirectory"); |
// Full path non-existent directory should throw exception. |
- Expect.throws(() => file.resolveSymbolicLinksSync(), |
- (e) => checkResolveSymbolicLinksOnNonExistentDirectoryException(e)); |
+ Expect.throws(() => file.fullPathSync(), |
+ (e) => checkFullPathOnNonExistentDirectoryException(e)); |
- var resolvedFuture = file.resolveSymbolicLinks(); |
- resolvedFuture.then((path) => Expect.fail("Unreachable code $path")) |
+ var fullPathFuture = file.fullPath(); |
+ fullPathFuture.then((path) => Expect.fail("Unreachable code $path")) |
.catchError((error) { |
- checkResolveSymbolicLinksOnNonExistentDirectoryException(error); |
+ checkFullPathOnNonExistentDirectoryException(error); |
temp.deleteSync(recursive: true); |
asyncEnd(); |
}); |
@@ -424,7 +424,7 @@ main() { |
testDeleteNonExistent(); |
testLengthNonExistent(); |
testCreateInNonExistentDirectory(); |
- testResolveSymbolicLinksOnNonExistentDirectory(); |
+ testFullPathOnNonExistentDirectory(); |
testReadAsBytesNonExistent(); |
testReadAsTextNonExistent(); |
testReadAsLinesNonExistent(); |