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

Unified Diff: tests/lib/async/future_test.dart

Issue 23926011: Rewrite Futures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bad asserts. Created 7 years, 3 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 | « sdk/lib/async/zone.dart ('k') | tests/lib/async/future_value_chain2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/future_test.dart
diff --git a/tests/lib/async/future_test.dart b/tests/lib/async/future_test.dart
index 2c81f0558fd2cb7bafdc049cf40101b5998d3e82..15948322ea8dce4cd9023e300255ce5a1dd5253c 100644
--- a/tests/lib/async/future_test.dart
+++ b/tests/lib/async/future_test.dart
@@ -617,22 +617,6 @@ void testChainedFutureError() {
completer.complete(21);
}
-void testChainedFutureCycle() {
- asyncStart();
- var completer = new Completer();
- var future, future2;
- future = completer.future.then((_) => future2);
- future2 = completer.future.then((_) => future);
- completer.complete(42);
- int ctr = 2;
- void receiveError(e) {
- Expect.isTrue(e is StateError);
- if (--ctr == 0) asyncEnd();
- }
- future.catchError(receiveError);
- future.catchError(receiveError);
-}
-
main() {
testValue();
testSync();
@@ -674,5 +658,4 @@ main() {
testChainedFutureValue();
testChainedFutureValueDelay();
testChainedFutureError();
- testChainedFutureCycle();
}
« no previous file with comments | « sdk/lib/async/zone.dart ('k') | tests/lib/async/future_value_chain2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698