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(); |