| Index: tests/standalone/io/directory_test.dart
|
| diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart
|
| index 139c8692f0bde607ec8c3810294f2114ec3b6d9e..488b1d02b0d07ed978258b4cd80dcdc3baf16191 100644
|
| --- a/tests/standalone/io/directory_test.dart
|
| +++ b/tests/standalone/io/directory_test.dart
|
| @@ -320,6 +320,15 @@ class DirectoryTest {
|
| }
|
| }
|
|
|
| + static void testFromPath() {
|
| + var name = new File('.').fullPathSync();
|
| + Directory current1 = new Directory(name);
|
| + var path = new Path.fromNative(name);
|
| + Directory current2 = new Directory.fromPath(path);
|
| + Expect.equals(current1.path, current2.path);
|
| + Expect.isTrue(current1.existsSync());
|
| + }
|
| +
|
| static void testMain() {
|
| testListing();
|
| testListNonExistent();
|
| @@ -333,6 +342,7 @@ class DirectoryTest {
|
| testCreateTemp();
|
| testCreateDeleteTemp();
|
| testCurrent();
|
| + testFromPath();
|
| }
|
| }
|
|
|
|
|