Index: tests/standalone/io/file_input_stream_test.dart |
diff --git a/tests/standalone/io/file_input_stream_test.dart b/tests/standalone/io/file_input_stream_test.dart |
index 0662c951bc864549096d964752fd16d866187c77..86cb355aa403dadd83db57e8cb19528e53babeff 100644 |
--- a/tests/standalone/io/file_input_stream_test.dart |
+++ b/tests/standalone/io/file_input_stream_test.dart |
@@ -233,7 +233,7 @@ void testStringLineSplitterEnding(String name, int length) { |
String fileName = getFilename("tests/standalone/io/$name"); |
// File contains 10 lines. |
File file = new File(fileName); |
- Expect.equals(length, file.openSync().lengthSync()); |
+ Expect.equals(length, file.lengthSync()); |
var lineStream = file.openRead() |
.transform(UTF8.decoder) |
.transform(new LineSplitter()); |