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

Unified Diff: tests/language_strong/await_in_cascade_test.dart

Issue 2628053002: Fixes #28338 (Closed)
Patch Set: Created 3 years, 11 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/dev_compiler/lib/src/compiler/js_metalet.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/await_in_cascade_test.dart
diff --git a/tests/language_strong/await_in_cascade_test.dart b/tests/language_strong/await_in_cascade_test.dart
index e9fbcf9bda79decf92d7461c7cedfa2781c6e976..dc1f30226c75ef370467bc1d25c08909a119fe4a 100644
--- a/tests/language_strong/await_in_cascade_test.dart
+++ b/tests/language_strong/await_in_cascade_test.dart
@@ -4,6 +4,7 @@
import 'dart:async';
import 'package:expect/expect.dart';
+import "package:async_helper/async_helper.dart";
class C {
Future<List<int>> m() async => []..add(await _m());
@@ -11,5 +12,7 @@ class C {
}
main() async {
- Expect.equals(await new C().m(), 42);
+ asyncStart();
+ Expect.equals((await new C().m()).first, 42);
+ asyncEnd();
}
« no previous file with comments | « pkg/dev_compiler/lib/src/compiler/js_metalet.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698