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

Unified Diff: test/chain/chain_test.dart

Issue 1871763002: Fix the remaining strong mode warnings. (Closed) Base URL: https://github.com/dart-lang/stack_trace.git@master
Patch Set: Created 4 years, 8 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 | « pubspec.yaml ('k') | test/chain/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/chain/chain_test.dart
diff --git a/test/chain/chain_test.dart b/test/chain/chain_test.dart
index 40b06d55224fcd8d6811e471d257b09db4bd9963..0824f4f763fd9c3ac63d1683e9b307096e545f9f 100644
--- a/test/chain/chain_test.dart
+++ b/test/chain/chain_test.dart
@@ -10,6 +10,8 @@ import 'package:test/test.dart';
import 'utils.dart';
+typedef void ChainErrorCallback(stack, Chain chain);
+
void main() {
group('Chain.parse()', () {
test('parses a real Chain', () {
@@ -48,7 +50,8 @@ void main() {
}, onError: expectAsync((error, chain) {
expect(error, equals("oh no"));
expect(chain, new isInstanceOf<Chain>());
- }), when: false);
+ }) as ChainErrorCallback, when: false);
+ // TODO(rnystrom): Remove this cast if expectAsync() gets a better type.
nweiz 2016/04/08 00:24:03 I generally haven't been making tests strong mode
});
});
« no previous file with comments | « pubspec.yaml ('k') | test/chain/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698