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

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

Issue 9358010: isolates in frog: playing with API improvements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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/MixedTest.dart ('k') | tests/isolate/src/NestedSpawnTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/NestedSpawn2Test.dart
diff --git a/tests/isolate/src/NestedSpawn2Test.dart b/tests/isolate/src/NestedSpawn2Test.dart
index a16ca3922440e1b046052a0fef703be1c232e82e..b8668901689c4aaa69ea10126be880c265813747 100644
--- a/tests/isolate/src/NestedSpawn2Test.dart
+++ b/tests/isolate/src/NestedSpawn2Test.dart
@@ -9,13 +9,13 @@
#library('NestedSpawn2Test');
#import('TestFramework.dart');
-class Isolate1 extends Isolate {
- Isolate1() : super.heavy();
+class IsolateA extends Isolate {
+ IsolateA() : super.heavy();
void main() {
this.port.receive((msg, replyTo) {
Expect.equals("launch nested!", msg);
- new Isolate2().spawn().then((SendPort p) {
+ new IsolateB().spawn().then((SendPort p) {
p.send(replyTo, null);
this.port.close();
});
@@ -31,8 +31,8 @@ String msg4 = "4 now?";
String msg5 = "5 Now.";
String msg6 = "6 Great. Bye";
-class Isolate2 extends Isolate {
- Isolate2() : super.heavy();
+class IsolateB extends Isolate {
+ IsolateB() : super.heavy();
void main() {
this.port.receive((mainPort, replyTo) {
@@ -54,7 +54,7 @@ class Isolate2 extends Isolate {
}
test(TestExpectation expect) {
- expect.completes(new Isolate1().spawn()).then((SendPort port) {
+ expect.completes(new IsolateA().spawn()).then((SendPort port) {
port.call("launch nested!").receive(expect.runs2((msg, replyTo) {
Expect.equals("0", msg[0]);
replyTo.call(msg1).receive(expect.runs2((msg, replyTo) {
« no previous file with comments | « tests/isolate/src/MixedTest.dart ('k') | tests/isolate/src/NestedSpawnTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698