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

Unified Diff: lib/src/backend/invoker.dart

Issue 1044953004: Gracefully handle tests that print. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 9 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 | « CHANGELOG.md ('k') | lib/src/backend/live_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/backend/invoker.dart
diff --git a/lib/src/backend/invoker.dart b/lib/src/backend/invoker.dart
index 53d9ad0b27a0bbca6d2f773568236eae8763ba4b..fe4d0fbac50223e2719a0ae6e0e666f6a758fdb3 100644
--- a/lib/src/backend/invoker.dart
+++ b/lib/src/backend/invoker.dart
@@ -178,7 +178,11 @@ class Invoker {
// non-microtask events.
Timer.run(_controller.completer.complete);
});
- }, zoneValues: {#unittest.invoker: this}, onError: handleError);
+ },
+ zoneSpecification: new ZoneSpecification(
+ print: (self, parent, zone, line) => _controller.print(line)),
+ zoneValues: {#unittest.invoker: this},
+ onError: handleError);
});
}
}
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/backend/live_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698