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

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

Issue 9401030: remove promise from corelib (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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/isolate.status ('k') | tests/isolate/src/MintMakerPromiseTest.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 2214af8d2f03341bcfa571f6ca4f43f66f0c053d..73f5ee5ba558284a6ae744429d2e36ae3ee9edeb 100644
--- a/tests/isolate/src/MandelIsolateTest.dart
+++ b/tests/isolate/src/MandelIsolateTest.dart
@@ -11,7 +11,7 @@ final ISOLATES = 20;
void test(TestExpectation expect) {
final state = new MandelbrotState();
- expect.completes(state._validated).then((result) {
+ expect.completes(state._validated.future).then((result) {
Expect.isTrue(result);
expect.succeeded();
});
@@ -26,7 +26,7 @@ class MandelbrotState {
_lineProcessedBy = new List<LineProcessorClient>(N);
_sent = 0;
_missing = N;
- _validated = new Promise<bool>();
+ _validated = new Completer<bool>();
}
void startClient(int id) {
@@ -75,7 +75,7 @@ class MandelbrotState {
List<LineProcessorClient> _lineProcessedBy;
int _sent;
int _missing;
- Promise<bool> _validated;
+ Completer<bool> _validated;
}
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/src/MintMakerPromiseTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698