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

Unified Diff: tests/isolate/spawn_uri_nested_vm_test.dart

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 2 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/spawn_uri_nested_child2_vm_isolate.dart ('k') | tests/isolate/spawn_uri_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/spawn_uri_nested_vm_test.dart
diff --git a/tests/isolate/spawn_uri_nested_vm_test.dart b/tests/isolate/spawn_uri_nested_vm_test.dart
index e48483edd3ab3f698a1b77a682b5d25ed96a7c10..07deb9af997da5fd049fe18591f23c9b7175a86f 100644
--- a/tests/isolate/spawn_uri_nested_vm_test.dart
+++ b/tests/isolate/spawn_uri_nested_vm_test.dart
@@ -12,8 +12,9 @@ import '../../pkg/unittest/lib/unittest.dart';
main() {
test('isolate fromUri - nested send and reply', () {
- var port = spawnUri('spawn_uri_nested_child1_vm_isolate.dart');
-
- port.call([1, 2]).then((result) => print(result));
+ ReceivePort port = new ReceivePort();
+ Isolate.spawnUri(Uri.parse('spawn_uri_nested_child1_vm_isolate.dart'),
+ [], [[1, 2], port.sendPort]);
+ port.first.then(expectAsync1((result) => print(result)));
});
}
« no previous file with comments | « tests/isolate/spawn_uri_nested_child2_vm_isolate.dart ('k') | tests/isolate/spawn_uri_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698