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

Unified Diff: tests/isolate/src/MixedTest.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/APIv2_unresolvedPortsStandaloneTest.dart ('k') | tests/isolate/src/NestedSpawn2Test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/MixedTest.dart
diff --git a/tests/isolate/src/MixedTest.dart b/tests/isolate/src/MixedTest.dart
index 51c2165d61a155353ade10dc0036777fba4e9780..01370dabed6322949884b4da4ca634910074ec42 100644
--- a/tests/isolate/src/MixedTest.dart
+++ b/tests/isolate/src/MixedTest.dart
@@ -7,13 +7,13 @@
#library('MixedTest');
#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.light();
+class IsolateB extends Isolate {
+ IsolateB() : super.light();
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/APIv2_unresolvedPortsStandaloneTest.dart ('k') | tests/isolate/src/NestedSpawn2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698