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

Unified Diff: tests/isolate/src/MandelIsolateTest.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/IsolateNegativeTest.dart ('k') | tests/isolate/src/Message2Test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/MandelIsolateTest.dart
diff --git a/tests/isolate/src/MandelIsolateTest.dart b/tests/isolate/src/MandelIsolateTest.dart
index 28254d4c1ef7d663899658f815b3dd9549a34ccf..e658068ee5cfa30571de374b6d5651f3e75bca82 100644
--- a/tests/isolate/src/MandelIsolateTest.dart
+++ b/tests/isolate/src/MandelIsolateTest.dart
@@ -4,20 +4,19 @@
#library('MandelIsolateTest');
#import('dart:isolate');
-#import('../../../lib/unittest/unittest.dart');
+#import('TestFramework.dart');
final TERMINATION_MESSAGE = -1;
final N = 100;
final ISOLATES = 20;
-main() {
- test("Render Mandelbrot in parallel", () {
- final state = new MandelbrotState();
- state._validated.future.then(expectAsync1((result) {
- expect(result).isTrue();
- }));
- for (int i = 0; i < Math.min(ISOLATES, N); i++) state.startClient(i);
+void test(TestExpectation expect) {
+ final state = new MandelbrotState();
+ expect.completes(state._validated.future).then((result) {
+ Expect.isTrue(result);
+ expect.succeeded();
});
+ for (int i = 0; i < Math.min(ISOLATES, N); i++) state.startClient(i);
}
@@ -149,4 +148,9 @@ class LineProcessor extends Isolate {
}
return result;
}
+
+}
+
+main() {
+ runTests([test]);
}
« no previous file with comments | « tests/isolate/src/IsolateNegativeTest.dart ('k') | tests/isolate/src/Message2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698