Index: tests/standalone/io/directory_test.dart |
diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart |
index 0d6500e02bf13521cb7d90344aee0cb7334b7649..47a7b38bc0068551a79fda454ff1f6cd72b70aa6 100644 |
--- a/tests/standalone/io/directory_test.dart |
+++ b/tests/standalone/io/directory_test.dart |
@@ -27,9 +27,9 @@ class DirectoryTest { |
void testSyncListing(bool recursive) { |
for (var entry in directory.listSync(recursive: recursive)) { |
if (entry is File) { |
- Expect.isTrue(entry.name.contains(directory.path)); |
- Expect.isTrue(entry.name.contains('subdir')); |
- Expect.isTrue(entry.name.contains('file.txt')); |
+ Expect.isTrue(entry.path.contains(directory.path)); |
+ Expect.isTrue(entry.path.contains('subdir')); |
+ Expect.isTrue(entry.path.contains('file.txt')); |
Expect.isFalse(listedFile); |
listedFile = true; |
} else { |
@@ -54,7 +54,7 @@ class DirectoryTest { |
directory.list(recursive: true).listen( |
(FileSystemEntity entity) { |
if (entity is File) { |
- var path = entity.name; |
+ var path = entity.path; |
listedFile = true; |
Expect.isTrue(path.contains(directory.path)); |
Expect.isTrue(path.contains('subdir')); |