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

Unified Diff: tests/isolate/src/SerializationTest.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « tests/isolate/src/RequestReplyTest.dart ('k') | tests/isolate/src/SpawnTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/SerializationTest.dart
diff --git a/tests/isolate/src/SerializationTest.dart b/tests/isolate/src/SerializationTest.dart
index 9f8de80f3bce6768b11d6d64bb5bf6a74d83ef53..61062fa6e7016ed575fa43c836bc90a9040de3bb 100644
--- a/tests/isolate/src/SerializationTest.dart
+++ b/tests/isolate/src/SerializationTest.dart
@@ -36,13 +36,7 @@ void testAllTypes(Function f) {
copyAndVerify([ { 'a': 499 }, { 'b': 42 } ], f);
var port = new ReceivePort();
- var transformed = f(port);
- Expect.equals(port.toSendPort(), transformed);
- port.close();
-
- port = new ReceivePort.singleShot();
- transformed = f(port);
- Expect.equals(port.toSendPort(), transformed);
+ Expect.throws(() => f(port));
port.close();
var a = [ 1, 3, 5 ];
« no previous file with comments | « tests/isolate/src/RequestReplyTest.dart ('k') | tests/isolate/src/SpawnTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698