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

Side by Side Diff: tests/language_2/async_break_in_finally_test.dart

Issue 2985173002: Migrate language/async_backwards... ... language/async_star_take... (Closed)
Patch Set: Update tests to Dart 2.0. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 7
8 then43() async { 8 then43() async {
9 label: 9 label:
10 try { 10 try {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 Expect.equals(42, await then42()); 45 Expect.equals(42, await then42());
46 Expect.equals(43, await then43()); 46 Expect.equals(43, await then43());
47 Expect.equals(42, now42()); 47 Expect.equals(42, now42());
48 Expect.equals(43, now43()); 48 Expect.equals(43, now43());
49 } 49 }
50 50
51 main() { 51 main() {
52 asyncStart(); 52 asyncStart();
53 test().then((_) => asyncEnd()); 53 test().then((_) => asyncEnd());
54 } 54 }
OLDNEW
« no previous file with comments | « tests/language_2/async_backwards_compatibility_2_test.dart ('k') | tests/language_2/async_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698