Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: tests/standalone/io/file_non_ascii_sync_test.dart

Issue 11316102: Add utility methods to write the contents of a file as one operation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | tests/standalone/io/file_non_ascii_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | tests/standalone/io/file_non_ascii_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698