| Index: tests/standalone/io/file_test.dart
|
| diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
|
| index 0c87af6610ba97239bdefaa69a3817a93a14d157..fed6af6806cab434240a4d1d73ca60120d0f718f 100644
|
| --- a/tests/standalone/io/file_test.dart
|
| +++ b/tests/standalone/io/file_test.dart
|
| @@ -977,6 +977,18 @@ class FileTest {
|
| }
|
| }
|
|
|
| + static void testOpenFileFromPath() {
|
| + var name = getFilename("tests/vm/data/fixed_length_file");
|
| + var path = new Path(name);
|
| + var f = new File.fromPath(path);
|
| + Expect.isTrue(f.existsSync());
|
| + name = f.fullPathSync();
|
| + path = new Path.fromNative(name);
|
| + var g = new File.fromPath(path);
|
| + Expect.isTrue(g.existsSync());
|
| + Expect.equals(name, g.fullPathSync());
|
| + }
|
| +
|
| static void testReadAsBytes() {
|
| var port = new ReceivePort();
|
| port.receive((result, replyTo) {
|
| @@ -1187,6 +1199,7 @@ class FileTest {
|
| testPositionSync();
|
| testOpenDirectoryAsFile();
|
| testOpenDirectoryAsFileSync();
|
| + testOpenFileFromPath();
|
| testReadAsBytes();
|
| testReadAsBytesSync();
|
| testReadAsText();
|
|
|