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

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

Issue 2857393003: Adding to a closed sink throws.
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | tests/standalone/io/http_10_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 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");
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | tests/standalone/io/http_10_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698