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

Unified Diff: tests/language/await_for_cancel_test.dart

Issue 912513002: Status updates, and minor fixes to tests of async-await. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/language/asyncstar_yieldstar_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/await_for_cancel_test.dart
diff --git a/tests/language/await_for_cancel_test.dart b/tests/language/await_for_cancel_test.dart
index 6e3883d3cda336bdb6a50995c1f0a3a0f9ec9964..fbd2d97a238d0659d429e4e14984886dc6c0b438 100644
--- a/tests/language/await_for_cancel_test.dart
+++ b/tests/language/await_for_cancel_test.dart
@@ -46,10 +46,16 @@ test2() async {
}
}
-main() async {
+test() async {
await test1();
await test2();
+}
+main() async {
+ asyncStart();
+ test().then((_) {
+ asyncEnd();
+ });
}
« no previous file with comments | « tests/language/asyncstar_yieldstar_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698