Chromium Code Reviews| Index: tests/isolate/src/MandelIsolateTest.dart |
| diff --git a/tests/isolate/src/MandelIsolateTest.dart b/tests/isolate/src/MandelIsolateTest.dart |
| index e658068ee5cfa30571de374b6d5651f3e75bca82..350b0906a6412c7c06a86249a41aa9634655405f 100644 |
| --- a/tests/isolate/src/MandelIsolateTest.dart |
| +++ b/tests/isolate/src/MandelIsolateTest.dart |
| @@ -4,19 +4,20 @@ |
| #library('MandelIsolateTest'); |
| #import('dart:isolate'); |
| -#import('TestFramework.dart'); |
| +#import('../../../lib/unittest/unittest.dart'); |
| final TERMINATION_MESSAGE = -1; |
| final N = 100; |
| final ISOLATES = 20; |
| -void test(TestExpectation expect) { |
| - final state = new MandelbrotState(); |
| - expect.completes(state._validated.future).then((result) { |
| - Expect.isTrue(result); |
| - expect.succeeded(); |
| +main() { |
| + test("Render mandelbroth in parallel", () { |
|
Bob Nystrom
2012/04/20 22:31:36
"Mandelbrot"
Siggi Cherem (dart-lang)
2012/04/21 00:03:43
this one had to make you laugh :)
|
| + final state = new MandelbrotState(); |
| + state._validated.future.then(later1((result) { |
| + Expect.isTrue(result); |
|
Bob Nystrom
2012/04/20 22:31:36
expect(result).isTrue();
Siggi Cherem (dart-lang)
2012/04/21 00:03:43
Done. In general I was trying to do the minimal ch
Bob Nystrom
2012/04/23 17:34:07
Totally fine. I'm OK with gradually changing this
|
| + })); |
| + for (int i = 0; i < Math.min(ISOLATES, N); i++) state.startClient(i); |
| }); |
| - for (int i = 0; i < Math.min(ISOLATES, N); i++) state.startClient(i); |
| } |
| @@ -148,9 +149,4 @@ class LineProcessor extends Isolate { |
| } |
| return result; |
| } |
| - |
| -} |
| - |
| -main() { |
| - runTests([test]); |
| } |