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

Side by Side Diff: tests/lib_2/async/future_or_strong_test.dart

Issue 2999943002: Migrated test block 168 to Dart 2.0. (Closed)
Patch Set: Fixed package:test crash related issues, addressed Bob's comments. Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « tests/lib_2/async/future_or_only_in_async_test.dart ('k') | tests/lib_2/async/future_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // In strong mode, `FutureOr` should be equivalent to the union of `Future<T>` 5 // In strong mode, `FutureOr` should be equivalent to the union of `Future<T>`
6 // and `T`. 6 // and `T`.
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Expect.isFalse(bar3 is FunReturns<String>); 110 Expect.isFalse(bar3 is FunReturns<String>);
111 Expect.isFalse(bar3 is FunReturns<Future<int>>); 111 Expect.isFalse(bar3 is FunReturns<Future<int>>);
112 Expect.isFalse(bar3 is FunReturns<Future<String>>); 112 Expect.isFalse(bar3 is FunReturns<Future<String>>);
113 Expect.isTrue(bar3 is FunReturns<FutureOr<Object>>); 113 Expect.isTrue(bar3 is FunReturns<FutureOr<Object>>);
114 Expect.isTrue(bar3 is FunReturns<FutureOr<int>>); 114 Expect.isTrue(bar3 is FunReturns<FutureOr<int>>);
115 Expect.isFalse(bar3 is FunReturns<FutureOr<String>>); 115 Expect.isFalse(bar3 is FunReturns<FutureOr<String>>);
116 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<Object>>>); 116 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<Object>>>);
117 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<int>>>); 117 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<int>>>);
118 Expect.isFalse(bar3 is FunReturns<FutureOr<FutureOr<String>>>); 118 Expect.isFalse(bar3 is FunReturns<FutureOr<FutureOr<String>>>);
119 } 119 }
OLDNEW
« no previous file with comments | « tests/lib_2/async/future_or_only_in_async_test.dart ('k') | tests/lib_2/async/future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698