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

Unified Diff: tests/lib_strong/async/zone_fork_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_fork_test.dart
diff --git a/tests/lib_strong/async/zone_fork_test.dart b/tests/lib_strong/async/zone_fork_test.dart
index f3d98ea68a942ce76bbf6fb4a93f5e57f0185ab1..7afbfdea1d43932e8302c811e0fa87f8c694630e 100644
--- a/tests/lib_strong/async/zone_fork_test.dart
+++ b/tests/lib_strong/async/zone_fork_test.dart
@@ -19,9 +19,9 @@ main() {
// is the root zone. (The origin zone hasn't been set yet).
Expect.identical(Zone.ROOT, Zone.current);
events.add("forked.fork");
- Function descriptionRun = zoneSpecification.run;
+ var descriptionRun = zoneSpecification.run;
ZoneSpecification modified = new ZoneSpecification.from(zoneSpecification,
- run: (self, parent, origin, f) {
+ run: <R>(self, parent, origin, R f()) {
events.add("wrapped run");
return descriptionRun(self, parent, origin, () {
events.add("wrapped f");
@@ -33,7 +33,7 @@ main() {
events.add("start");
Zone forkedChild = forked.fork(specification: new ZoneSpecification(
- run: (Zone self, ZoneDelegate parent, Zone origin, f()) {
+ run: <R>(Zone self, ZoneDelegate parent, Zone origin, R f()) {
events.add("executing child run");
return parent.run(origin, f);
}));
« no previous file with comments | « tests/lib_strong/async/zone_debug_test.dart ('k') | tests/lib_strong/async/zone_register_callback_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698