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

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

Issue 10153005: unittest step 3 and 4: remove TestFramework.dart, make test.dart use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
Index: tests/isolate/src/NestedSpawnTest.dart
diff --git a/tests/isolate/src/NestedSpawnTest.dart b/tests/isolate/src/NestedSpawnTest.dart
index 778304121e0a14e3569881ebe8e7ea22f91a60d1..ca7da4400a2b692364fccf2d377288b7c0d024a5 100644
--- a/tests/isolate/src/NestedSpawnTest.dart
+++ b/tests/isolate/src/NestedSpawnTest.dart
@@ -6,7 +6,7 @@
#library('NestedSpawnTest');
#import("dart:isolate");
-#import('TestFramework.dart');
+#import('../../../lib/unittest/unittest.dart');
class IsolateA extends Isolate {
IsolateA() : super.heavy();
@@ -37,15 +37,13 @@ class IsolateB extends Isolate {
}
}
-test(TestExpectation expect) {
- expect.completes(new IsolateA().spawn()).then((SendPort port) {
- port.call("launch nested!").then(expect.runs1((msg) {
- Expect.equals(499, msg);
- expect.succeeded();
- }));
- });
-}
main() {
- runTests([test]);
+ test("spawned isolates can spawn nested isolates", () {
+ new IsolateA().spawn().then(later1((SendPort port) {
+ port.call("launch nested!").then(later1((msg) {
+ Expect.equals(499, msg);
+ }));
+ }));
+ });
}

Powered by Google App Engine
This is Rietveld 408576698