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

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

Issue 8478014: convert isolate TestFramework from Promise Future (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: change TestFramework to Future Created 9 years, 1 month 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 | « no previous file | tests/isolate/src/PromiseBasedTest.dart » ('j') | tests/isolate/src/TestFramework.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/src/Mixed2Test.dart
diff --git a/tests/isolate/src/Mixed2Test.dart b/tests/isolate/src/Mixed2Test.dart
index ae3e20d0305a3a5367f7a9cda1ea494b119778a8..f1a41da5d1d158e9e7fed8b1e0e63bf9fdcec63d 100644
--- a/tests/isolate/src/Mixed2Test.dart
+++ b/tests/isolate/src/Mixed2Test.dart
@@ -107,9 +107,9 @@ class HeavyIsolate3 extends Isolate {
}
void test(TestExpectation expect) {
- Promise<SendPort> heavy1 = expect.completes(new HeavyIsolate1().spawn());
- Promise<SendPort> heavy2 = expect.completes(new HeavyIsolate2().spawn());
- Promise<SendPort> heavy3 = expect.completes(new HeavyIsolate3().spawn());
+ Future<SendPort> heavy1 = expect.completes(new HeavyIsolate1().spawn());
+ Future<SendPort> heavy2 = expect.completes(new HeavyIsolate2().spawn());
+ Future<SendPort> heavy3 = expect.completes(new HeavyIsolate3().spawn());
heavy2.then(expect.runs1((SendPort heavy2Port) {
heavy3.then(expect.runs1((SendPort heavy3Port) {
« no previous file with comments | « no previous file | tests/isolate/src/PromiseBasedTest.dart » ('j') | tests/isolate/src/TestFramework.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698