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

Unified Diff: pkg/unittest/test/utils.dart

Issue 416133002: Abort unit tests in the event of async failure while awaiting a future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update pubspec and changelog Created 6 years, 5 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 | « pkg/unittest/test/async_exception_with_future_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/utils.dart
diff --git a/pkg/unittest/test/utils.dart b/pkg/unittest/test/utils.dart
index 17a8cb62364bf90c449a66456dc538c2dc065361..553d359f4bba686f9456b1bc851032b260ed45f7 100644
--- a/pkg/unittest/test/utils.dart
+++ b/pkg/unittest/test/utils.dart
@@ -4,8 +4,11 @@
part of unittestTest;
+/**
+ * Schedule [fn] for future execution in an event handler.
+ */
Future _defer(void fn()) {
- return new Future.sync(fn);
+ return new Future(fn);
}
String buildStatusString(int passed, int failed, int errors,
« no previous file with comments | « pkg/unittest/test/async_exception_with_future_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698