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

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

Issue 2893893002: Use generic functions in zones. (Closed)
Patch Set: Fix more tests. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib_strong/async/zone_bind_callback_test.dart ('k') | tests/lib_strong/async/zone_debug_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib_strong/async/zone_bind_callback_unary_test.dart
diff --git a/tests/lib_strong/async/zone_bind_callback_unary_test.dart b/tests/lib_strong/async/zone_bind_callback_unary_test.dart
index 19155abc214e579679806fbe5be14444dce0f34b..8395df69298509b8daf6a1d67c28fc9126a4ac76 100644
--- a/tests/lib_strong/async/zone_bind_callback_unary_test.dart
+++ b/tests/lib_strong/async/zone_bind_callback_unary_test.dart
@@ -15,7 +15,7 @@ main() {
Expect.identical(Zone.ROOT, Zone.current);
Zone forked = Zone.current.fork(specification: new ZoneSpecification(
registerUnaryCallback:
- (Zone self, ZoneDelegate parent, Zone origin, f(arg)) {
+ <R, T>(Zone self, ZoneDelegate parent, Zone origin, R f(T arg)) {
// 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);
@@ -32,7 +32,7 @@ main() {
Expect.identical(forked, Zone.current);
return x + 99;
};
- var bound = forked.bindUnaryCallback(fun, runGuarded: false);
+ var bound = forked.bindUnaryCallback(fun);
Expect.isFalse(identical(fun, bound));
// It is legal to invoke the callback in a different zone. This is, of course,
« no previous file with comments | « tests/lib_strong/async/zone_bind_callback_test.dart ('k') | tests/lib_strong/async/zone_debug_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698