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

Unified Diff: dart/tests/language/await_future_test.dart

Issue 754763003: Version 1.8.3 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.8/
Patch Set: Created 6 years 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 | « dart/tests/corelib/regress_r21715_test.dart ('k') | dart/tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/await_future_test.dart
===================================================================
--- dart/tests/language/await_future_test.dart (revision 42037)
+++ dart/tests/language/await_future_test.dart (working copy)
@@ -20,6 +20,8 @@
return b;
}
+faa() async => (await bar('faa')).length;
+
quaz(p) async {
var x = 0;
try {
@@ -184,6 +186,8 @@
for (int i = 0; i < 10; i++) {
result = await foo();
Expect.equals(30, result);
+ result = await faa();
+ Expect.equals(3, result);
result = await quaz(17);
Expect.equals(17, result);
result = await quazz();
« no previous file with comments | « dart/tests/corelib/regress_r21715_test.dart ('k') | dart/tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698