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

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

Issue 20745006: Add a flush operations to IOSink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix merge issue Created 7 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_write_as_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 926d63ffc2e7f95ef1f96da0d99c7067798e94d3..de0c3b44068ef19aa00730d9ceee28efe2783afa 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -108,7 +108,7 @@ class FileTest {
var file2 = new File(outFilename);
var output = file2.openWrite();
output.add(buffer);
- output.close();
+ output.flush().then((_) => output.close());
output.done.then((_) {
// Now read the contents of the file just written.
List<int> buffer2 = new List<int>();
@@ -147,7 +147,7 @@ class FileTest {
IOSink output = file.openWrite();
output.add(buffer);
output.add(buffer);
- output.close();
+ output.flush().then((_) => output.close());
output.done.then((_) {
Stream input = file.openRead();
int position = 0;
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | tests/standalone/io/file_write_as_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698