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

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

Issue 23658048: Revert "dart:io | Change File.fullPath to FileSystemEntity.resolveSymbolicLinks." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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_error_test.dart ('k') | tests/standalone/io/resolve_symbolic_links_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 1c5f860dc5d3e7b23e7ab5576c40305b63354192..14e4780052a45562affd59ea50a0903afc7b7c74 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -920,6 +920,16 @@ class FileTest {
}
}
+ static void testOpenFile() {
+ var name = getFilename("tests/vm/data/fixed_length_file");
+ var f = new File(name);
+ Expect.isTrue(f.existsSync());
+ name = f.fullPathSync();
+ var g = new File(name);
+ Expect.isTrue(g.existsSync());
+ Expect.equals(name, g.fullPathSync());
+ }
+
static void testReadAsBytes() {
asyncTestStarted();
var name = getFilename("tests/vm/data/fixed_length_file");
@@ -1259,6 +1269,7 @@ class FileTest {
testPositionSync();
testOpenDirectoryAsFile();
testOpenDirectoryAsFileSync();
+ testOpenFile();
testReadAsBytesSync();
testReadAsBytesSyncEmptyFile();
testReadAsTextSync();
« no previous file with comments | « tests/standalone/io/file_error_test.dart ('k') | tests/standalone/io/resolve_symbolic_links_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698