Index: tests/standalone/io/file_test.dart |
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart |
index 0c7e4f0388b0d87a81bc368d2cb6f0385fb2936c..beccc0b09628d4a3e8b01eb3863db39242de8a6b 100644 |
--- a/tests/standalone/io/file_test.dart |
+++ b/tests/standalone/io/file_test.dart |
@@ -45,7 +45,7 @@ class FileTest { |
// Read a file and check part of it's contents. |
String filename = getFilename("bin/file_test.cc"); |
File file = new File(filename); |
- Expect.isTrue('$file'.contains(file.name)); |
+ Expect.isTrue('$file'.contains(file.path)); |
var subscription; |
List<int> buffer = new List<int>(); |
subscription = file.openRead().listen( |
@@ -172,7 +172,7 @@ class FileTest { |
} |
static Future testPipe(File file, buffer) { |
- String outputFilename = '${file.name}_copy'; |
+ String outputFilename = '${file.path}_copy'; |
File outputFile = new File(outputFilename); |
var input = file.openRead(); |
var output = outputFile.openWrite(); |