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

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

Issue 10226008: Revert "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
« no previous file with comments | « tests/isolate/src/Mixed2Test.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 eafdf6773e427080d44833586998ab94c35be57d..e2870f282fe094104213f088ec1cc713bb4421ed 100644
--- a/tests/isolate/src/MixedTest.dart
+++ b/tests/isolate/src/MixedTest.dart
@@ -6,7 +6,7 @@
#library('MixedTest');
#import("dart:isolate");
-#import('../../../lib/unittest/unittest.dart');
+#import('TestFramework.dart');
class IsolateA extends Isolate {
IsolateA() : super.heavy();
@@ -37,12 +37,15 @@ class IsolateB extends Isolate {
}
}
-main() {
- test("light isolate can spawn heavy isolate", () {
- new IsolateA().spawn().then(expectAsync1((SendPort port) {
- port.call("launch nested!").then(expectAsync1((msg) {
- Expect.equals(499, msg);
- }));
+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]);
+}
« no previous file with comments | « tests/isolate/src/Mixed2Test.dart ('k') | tests/isolate/src/NestedSpawn2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698