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

Unified Diff: tests/standalone/io/socket_exception_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
Index: tests/standalone/io/socket_exception_test.dart
diff --git a/tests/standalone/io/socket_exception_test.dart b/tests/standalone/io/socket_exception_test.dart
index 3dbe93eb1cd5549e2b93dbcb13ccc207bc1e658a..364acccbb954a5ff2fcd591e7d52c1ff6edd88b7 100644
--- a/tests/standalone/io/socket_exception_test.dart
+++ b/tests/standalone/io/socket_exception_test.dart
@@ -90,6 +90,8 @@ class SocketExceptionTest {
}
Expect.isFalse(exceptionCaught);
Expect.isFalse(wrongExceptionCaught);
+
+ // From here exceptions are expected.
try {
List<int> buffer = new List<int>(10);
client.add(buffer);
@@ -98,10 +100,8 @@ class SocketExceptionTest {
} catch (ex) {
wrongExceptionCaught = true;
}
- Expect.isFalse(exceptionCaught);
+ Expect.isTrue(exceptionCaught);
Expect.isFalse(wrongExceptionCaught);
-
- // From here exceptions are expected.
exceptionCaught = false;
try {
client.port;
« no previous file with comments | « tests/standalone/io/http_content_length_test.dart ('k') | tests/standalone/io/socket_upgrade_to_secure_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698