Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library run_async_test; | 5 library run_async_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import '../../../pkg/unittest/lib/unittest.dart'; | 8 import '../../../pkg/unittest/lib/unittest.dart'; |
| 9 | 9 |
| 10 bool _unhandledExceptionCallback(exception) => true; | 10 bool _unhandledExceptionCallback(exception) => true; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 test('run async test', () { | 13 test('run async test', () { |
| 14 var callback = expectAsync0(() {}); | 14 runAsync(expectAsync0({ |
| 15 runAsync(() { | 15 runAsync(expectAsync0(() {})); |
|
floitsch
2013/06/20 14:59:35
why is this change needed?
kustermann
2013/06/25 07:14:21
You're right, this should not be necessary.
| |
| 16 runAsync(() { | |
| 17 callback(); | |
| 18 }); | |
| 19 throw new Exception('exception'); | 16 throw new Exception('exception'); |
| 20 }); | 17 })); |
| 21 }); | 18 }); |
| 22 } | 19 } |
| OLD | NEW |