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

Unified Diff: tests/isolate/src/ConstructorTest.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/APIv2_unresolvedPortsTest.dart ('k') | tests/isolate/src/CountTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/ConstructorTest.dart
diff --git a/tests/isolate/src/ConstructorTest.dart b/tests/isolate/src/ConstructorTest.dart
index 7e0323890dad27c0d96fa4d799b3d68c6dcbe8fe..c467e427fc297c6a20fd9a20083eb40eba3acb5a 100644
--- a/tests/isolate/src/ConstructorTest.dart
+++ b/tests/isolate/src/ConstructorTest.dart
@@ -4,7 +4,7 @@
#library("ConstructorTest");
#import("dart:isolate");
-#import('../../../lib/unittest/unittest.dart');
+#import("TestFramework.dart");
class ConstructorTest extends Isolate {
final int field;
@@ -18,13 +18,16 @@ class ConstructorTest extends Isolate {
}
}
-main() {
- test("constructor correctly initialized child isolate", () {
- ConstructorTest test = new ConstructorTest();
- test.spawn().then(expectAsync1((SendPort port) {
- port.call("ignored").then(expectAsync1((message) {
- Expect.equals(499, message);
- }));
+void test(TestExpectation expect) {
+ ConstructorTest test = new ConstructorTest();
+ expect.completes(test.spawn()).then((SendPort port) {
+ port.call("ignored").then(expect.runs1((message) {
+ Expect.equals(499, message);
+ expect.succeeded();
}));
});
}
+
+main() {
+ runTests([test]);
+}
« no previous file with comments | « tests/isolate/src/APIv2_unresolvedPortsTest.dart ('k') | tests/isolate/src/CountTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698