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

Unified Diff: tests/async_helper.dart

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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
Index: tests/async_helper.dart
diff --git a/tests/async_helper.dart b/tests/async_helper.dart
index f1a84b369f782285c87d0250fa5ef5ece290a8b3..72a391f03a019a3c5785011d3ba5141ec03ca68d 100644
--- a/tests/async_helper.dart
+++ b/tests/async_helper.dart
@@ -61,3 +61,8 @@ void asyncEnd() {
print('unittest-suite-success');
}
}
+
+void asyncTest(Future f()) {
+ asyncStart();
+ f().whenComplete(() => asyncEnd());
+}

Powered by Google App Engine
This is Rietveld 408576698