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

Unified Diff: tests/isolate/src/NestedSpawnTest.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/NestedSpawn2Test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/NestedSpawnTest.dart
diff --git a/tests/isolate/src/NestedSpawnTest.dart b/tests/isolate/src/NestedSpawnTest.dart
index 8ac933b83de59fdf7e1abf5843015c4ecbdaf55d..2ef1bd4d85a04c421a961d4167d13cffd996e021 100644
--- a/tests/isolate/src/NestedSpawnTest.dart
+++ b/tests/isolate/src/NestedSpawnTest.dart
@@ -7,13 +7,13 @@
#library('NestedSpawnTest');
#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.call("alive?").receive((msg, ignored) {
Expect.equals("and kicking", msg);
replyTo.send(499, null);
@@ -24,8 +24,8 @@ class Isolate1 extends Isolate {
}
}
-class Isolate2 extends Isolate {
- Isolate2() : super.heavy();
+class IsolateB extends Isolate {
+ IsolateB() : super.heavy();
void main() {
this.port.receive((msg, replyTo) {
@@ -37,7 +37,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, ignored) {
Expect.equals(499, msg);
expect.succeeded();
« no previous file with comments | « tests/isolate/src/NestedSpawn2Test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698