Add tests for nested contexts (#7197)

This tests against the failure that was fixed in #7189
This commit is contained in:
Todd Volkert
2016-12-08 09:39:32 -08:00
committed by GitHub
parent 1155f96651
commit 622e4396c9
3 changed files with 30 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ class AppContext {
: parentContext;
}
dynamic runInZone(dynamic method(), {
Future<dynamic> runInZone(dynamic method(), {
ZoneBinaryCallback<dynamic, dynamic, StackTrace> onError
}) {
return runZoned(
@@ -69,7 +69,7 @@ class AppContext {
);
}
dynamic _run(dynamic method()) async {
Future<dynamic> _run(dynamic method()) async {
Zone previousZone = _zone;
try {
_zone = Zone.current;