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

Unified Diff: tests/language/asyncstar_yieldstar_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_yield_test.dart ('k') | tests/language/await_for_cancel_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/asyncstar_yieldstar_test.dart
diff --git a/tests/language/asyncstar_yieldstar_test.dart b/tests/language/asyncstar_yieldstar_test.dart
index 72165a4c0d6dfa595c8e23e33acc23131bb23550..4caaf2d03216f1b5a750d1a4ba2049c3a187f826 100644
--- a/tests/language/asyncstar_yieldstar_test.dart
+++ b/tests/language/asyncstar_yieldstar_test.dart
@@ -31,9 +31,7 @@ foo2(Stream subStream) async* {
yield* subStream;
}
-main () async {
- asyncStart();
- print("starting");
+test() async {
Expect.listEquals([0, 1],
await (subStream(0).toList()));
Completer<bool> finalized = new Completer<bool>();
@@ -92,6 +90,11 @@ main () async {
Expect.isTrue(await pausedCompleter.future);
Expect.isTrue(await resumedCompleter.future);
Expect.isTrue(await canceledCompleter.future);
-
- asyncEnd();
+}
+
+main() {
+ asyncStart();
+ test().then((_) {
+ asyncEnd();
+ });
}
« no previous file with comments | « tests/language/asyncstar_yield_test.dart ('k') | tests/language/await_for_cancel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698