| Index: tests/standalone/io/file_test.dart
|
| diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
|
| index 17cead14a5257f584257cb284a6c9b5cdf545802..6a16efcfff93b78ca48d132e886b9ffe3a536d6d 100644
|
| --- a/tests/standalone/io/file_test.dart
|
| +++ b/tests/standalone/io/file_test.dart
|
| @@ -5,6 +5,7 @@
|
| // Dart test program for testing file I/O.
|
|
|
| import "package:expect/expect.dart";
|
| +import "package:path/path.dart";
|
| import 'dart:async';
|
| import 'dart:collection';
|
| import 'dart:io';
|
| @@ -926,14 +927,12 @@ class FileTest {
|
| }
|
| }
|
|
|
| - static void testOpenFileFromPath() {
|
| + static void testOpenFile() {
|
| var name = getFilename("tests/vm/data/fixed_length_file");
|
| - var path = new Path(name);
|
| - var f = new File.fromPath(path);
|
| + var f = new File(name);
|
| Expect.isTrue(f.existsSync());
|
| name = f.fullPathSync();
|
| - path = new Path(name);
|
| - var g = new File.fromPath(path);
|
| + var g = new File(name);
|
| Expect.isTrue(g.existsSync());
|
| Expect.equals(name, g.fullPathSync());
|
| }
|
| @@ -1291,7 +1290,7 @@ class FileTest {
|
| testPositionSync();
|
| testOpenDirectoryAsFile();
|
| testOpenDirectoryAsFileSync();
|
| - testOpenFileFromPath();
|
| + testOpenFile();
|
| testReadAsBytes();
|
| testReadAsBytesEmptyFile();
|
| testReadAsBytesSync();
|
|
|