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

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: Remove chained future cycle test. 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
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);
-}
-
Lasse Reichstein Nielsen 2013/09/10 12:03:53 Why remove the test? Is it not correct any more?
floitsch 2013/09/10 17:19:14 We don't catch cyclic chained futures anymore.
main() {
testValue();
testSync();
@@ -674,5 +658,4 @@ main() {
testChainedFutureValue();
testChainedFutureValueDelay();
testChainedFutureError();
- testChainedFutureCycle();
}

Powered by Google App Engine
This is Rietveld 408576698