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

Unified Diff: tests/standalone/io/file_test.dart

Issue 50413005: Reapply "Remove @deprecated features." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head Created 7 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 | « tests/standalone/io/file_non_ascii_test.dart ('k') | tests/standalone/io/link_async_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 3ecb0816c0896a35a1a88946618c8081155a0a1c..4657a30974df68279f639e0ad1d515069b2ca463 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -292,7 +292,7 @@ class FileTest {
String outFilename = tempDirectory.path + "/out_read_write";
final File file2 = new File(outFilename);
file2.create().then((ignore) {
- file2.fullPath().then((s) {
+ file2.resolveSymbolicLinks().then((s) {
Expect.isTrue(new File(s).existsSync());
if (s[0] != '/' && s[0] != '\\' && s[1] != ':') {
Expect.fail("Not a full path");
@@ -431,7 +431,7 @@ class FileTest {
String outFilename = tempDirectory.path + "/out_read_write_sync";
File outFile = new File(outFilename);
outFile.createSync();
- String path = outFile.fullPathSync();
+ String path = outFile.resolveSymbolicLinksSync();
if (path[0] != '/' && path[0] != '\\' && path[1] != ':') {
Expect.fail("Not a full path");
}
@@ -469,7 +469,7 @@ class FileTest {
String outFilename = tempDirectory.path + "/out_read_write_sync";
File outFile = new File(outFilename);
outFile.createSync();
- String path = outFile.fullPathSync();
+ String path = outFile.resolveSymbolicLinksSync();
if (path[0] != '/' && path[0] != '\\' && path[1] != ':') {
Expect.fail("Not a full path");
}
@@ -565,7 +565,7 @@ class FileTest {
var tempDir = tempDirectory.path;
var file = new File("${tempDir}/testDirectory");
file.create().then((ignore) {
- Directory d = file.directory;
+ Directory d = file.parent;
d.exists().then((xexists) {
Expect.isTrue(xexists);
Expect.isTrue(d.path.endsWith(tempDir));
@@ -578,20 +578,20 @@ class FileTest {
var tempDir = tempDirectory.path;
var file = new File("${tempDir}/testDirectorySync");
// Non-existing file still provides the directory.
- Expect.equals("${tempDir}", file.directory.path);
+ Expect.equals("${tempDir}", file.parent.path);
file.createSync();
// Check that the path of the returned directory is the temp directory.
- Directory d = file.directory;
+ Directory d = file.parent;
Expect.isTrue(d.existsSync());
Expect.isTrue(d.path.endsWith(tempDir));
file.deleteSync();
// The directory getter does not care about file or type of file
// system entity.
- Expect.equals("${tempDir}", file.directory.path);
+ Expect.equals("${tempDir}", file.parent.path);
file = new File("foo");
- Expect.equals(".", file.directory.path);
+ Expect.equals(".", file.parent.path);
file = new File(".");
- Expect.equals(".", file.directory.path);
+ Expect.equals(".", file.parent.path);
}
// Test for file length functionality.
« no previous file with comments | « tests/standalone/io/file_non_ascii_test.dart ('k') | tests/standalone/io/link_async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698