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

Unified Diff: tests/lib_strong/async/zone_bind_callback_test.dart

Issue 3014593002: Use generic functions in zones. (Closed)
Patch Set: Added changes missing from patch set #2 Created 3 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_strong/async/zone_bind_callback_test.dart
diff --git a/tests/lib_strong/async/zone_bind_callback_test.dart b/tests/lib_strong/async/zone_bind_callback_test.dart
index af6b24fc3178bf79ff74d87eb58643c5d31f31b7..bb73bb75b48f526cd9a1cbedd3687c3b706da384 100644
--- a/tests/lib_strong/async/zone_bind_callback_test.dart
+++ b/tests/lib_strong/async/zone_bind_callback_test.dart
@@ -14,7 +14,8 @@ main() {
Expect.identical(Zone.ROOT, Zone.current);
Zone forked = Zone.current.fork(specification: new ZoneSpecification(
- registerCallback: (Zone self, ZoneDelegate parent, Zone origin, f()) {
+ registerCallback:
+ <R>(Zone self, ZoneDelegate parent, Zone origin, R f()) {
// The zone is still the same as when origin.run was invoked, which
// is the root zone. (The origin zone hasn't been set yet).
Expect.identical(Zone.current, Zone.ROOT);
@@ -31,7 +32,7 @@ main() {
Expect.identical(forked, Zone.current);
return 99;
};
- var registered = forked.bindCallback(fun, runGuarded: false);
+ var registered = forked.bindCallback(fun);
Expect.isFalse(identical(fun, registered));
var result = registered();
« no previous file with comments | « tests/lib_strong/async/stream_listen_zone_test.dart ('k') | tests/lib_strong/async/zone_bind_callback_unary_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698