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

Unified Diff: tools/dom/src/shared_html.dart

Issue 133313004: pkg/unittest: Run tests in zones (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 6 years, 10 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/async/future_timeout_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/shared_html.dart
diff --git a/tools/dom/src/shared_html.dart b/tools/dom/src/shared_html.dart
index c44effcaa37d09e80e029cc60c792b340b1df49a..7c4f6960ad009f2bb7ffd1f4ec3e86b2a44a0ac8 100644
--- a/tools/dom/src/shared_html.dart
+++ b/tools/dom/src/shared_html.dart
@@ -4,14 +4,16 @@
part of dart.dom.html;
-_wrapZone(callback) {
+_wrapZone(callback(arg)) {
// For performance reasons avoid wrapping if we are in the root zone.
if (Zone.current == Zone.ROOT) return callback;
+ if (callback == null) return null;
return Zone.current.bindUnaryCallback(callback, runGuarded: true);
}
-_wrapBinaryZone(callback) {
+_wrapBinaryZone(callback(arg1, arg2)) {
if (Zone.current == Zone.ROOT) return callback;
+ if (callback == null) return null;
return Zone.current.bindBinaryCallback(callback, runGuarded: true);
}
« no previous file with comments | « tests/lib/async/future_timeout_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698