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

Unified Diff: pkg/observe/lib/src/microtask.dart

Issue 23437017: pkg/observe: wrapMicrotask should return the result the provided testCase (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | pkg/observe/lib/transform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/microtask.dart
diff --git a/pkg/observe/lib/src/microtask.dart b/pkg/observe/lib/src/microtask.dart
index e56fb623d6385b76ce5f785899e202b90d80624d..19d5e6009c0b88a7d8208a34b2a155beddf815e6 100644
--- a/pkg/observe/lib/src/microtask.dart
+++ b/pkg/observe/lib/src/microtask.dart
@@ -49,11 +49,11 @@ List<Function> _pending = [];
* Wraps the [testCase] in a zone that supports [performMicrotaskCheckpoint],
* and returns the test case.
*/
-wrapMicrotask(void testCase()) {
+wrapMicrotask(testCase()) {
return () {
- runZonedExperimental(() {
+ return runZonedExperimental(() {
try {
- testCase();
+ return testCase();
} finally {
performMicrotaskCheckpoint();
}
« no previous file with comments | « no previous file | pkg/observe/lib/transform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698