| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |