Index: tests/standalone/io/file_non_ascii_sync_test.dart |
diff --git a/tests/standalone/io/file_non_ascii_sync_test.dart b/tests/standalone/io/file_non_ascii_sync_test.dart |
index cff6e81002f68f7b4a42518c292245f8df580e58..19bf7aa74e470be11b58d9e47d49efb659e0a755 100644 |
--- a/tests/standalone/io/file_non_ascii_sync_test.dart |
+++ b/tests/standalone/io/file_non_ascii_sync_test.dart |
@@ -10,9 +10,7 @@ main() { |
nonAsciiDir.createSync(); |
Expect.isTrue(nonAsciiDir.existsSync()); |
File nonAsciiFile = new File('${nonAsciiDir.path}/æøå.txt'); |
- RandomAccessFile opened = nonAsciiFile.openSync(FileMode.WRITE); |
- opened.writeStringSync('æøå'); |
- opened.closeSync(); |
+ nonAsciiFile.writeAsStringSync('æøå'); |
Expect.isTrue(nonAsciiFile.existsSync()); |
// On MacOS you get the decomposed utf8 form of file and directory |
// names from the system. Therefore, we have to check for both here. |