| Index: tests/lib/async/future_test.dart
|
| diff --git a/tests/lib/async/future_test.dart b/tests/lib/async/future_test.dart
|
| index 15948322ea8dce4cd9023e300255ce5a1dd5253c..5fa450c34b86a912ed1f7b96fdec374869f14ced 100644
|
| --- a/tests/lib/async/future_test.dart
|
| +++ b/tests/lib/async/future_test.dart
|
| @@ -617,6 +617,19 @@ void testChainedFutureError() {
|
| completer.complete(21);
|
| }
|
|
|
| +void testSyncFuture_i13368() {
|
| + asyncStart();
|
| +
|
| + final future = new Future<int>.sync(() {
|
| + return new Future<int>.value(42);
|
| + });
|
| +
|
| + future.then((int val) {
|
| + Expect.equals(val, 42);
|
| + asyncEnd();
|
| + });
|
| +}
|
| +
|
| main() {
|
| testValue();
|
| testSync();
|
| @@ -658,4 +671,6 @@ main() {
|
| testChainedFutureValue();
|
| testChainedFutureValueDelay();
|
| testChainedFutureError();
|
| +
|
| + testSyncFuture_i13368();
|
| }
|
|
|