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

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

Issue 2822173002: Warn when adding something to a closed sink and improve documentation (Closed)
Patch Set: Fix tests and update documentation Created 3 years, 8 months 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
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index c3d9e6b3b23c4abfa944d881a16d857da458292a..0176033ba57b0b25e13c22198770cd7adb5e9d79 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -988,7 +988,9 @@ class FileTest {
file.createSync();
var output = file.openWrite();
output.close();
- output.add(buffer); // Ignored.
+ Expect.throws(() {
+ output.add(buffer);
+ });
output.done.then((_) {
file.deleteSync();
asyncTestDone("testCloseExceptionStream");

Powered by Google App Engine
This is Rietveld 408576698