OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 void main() { | 8 void main() { |
9 x() async { | 9 x() async { |
10 print("Starting!"); | 10 print("Starting!"); |
(...skipping 25 matching lines...) Expand all Loading... |
36 // #8 _Completer.completeError (dart:async/future_impl.dart:27:5) | 36 // #8 _Completer.completeError (dart:async/future_impl.dart:27:5) |
37 // #9 runAsync.async_op (this file) | 37 // #9 runAsync.async_op (this file) |
38 // #10 Future.Future.microtask.<anonymous closure> (dart:async/future.
dart:184:26) | 38 // #10 Future.Future.microtask.<anonymous closure> (dart:async/future.
dart:184:26) |
39 // #11 _microtaskLoop (dart:async/schedule_microtask.dart:41:5) | 39 // #11 _microtaskLoop (dart:async/schedule_microtask.dart:41:5) |
40 // #12 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) | 40 // #12 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) |
41 // #13 _runPendingImmediateCallback (dart:isolate:1054:5) | 41 // #13 _runPendingImmediateCallback (dart:isolate:1054:5) |
42 // #14 _RawReceivePortImpl._handleMessage (dart:isolate:1104:5) | 42 // #14 _RawReceivePortImpl._handleMessage (dart:isolate:1104:5) |
43 | 43 |
44 Expect.isFalse(stText.contains("propagateToListeners")); | 44 Expect.isFalse(stText.contains("propagateToListeners")); |
45 Expect.isFalse(stText.contains("_completeError")); | 45 Expect.isFalse(stText.contains("_completeError")); |
46 Expect.isFalse(stText.contains("main")); | |
47 } | 46 } |
48 print("Ending!"); | 47 print("Ending!"); |
49 } | 48 } |
50 | 49 |
51 asyncStart(); | 50 asyncStart(); |
52 x().then((_) => asyncEnd()); | 51 x().then((_) => asyncEnd()); |
53 } | 52 } |
54 | 53 |
55 runAsync() async { | 54 runAsync() async { |
56 throw 'oh no!'; | 55 throw 'oh no!'; |
57 } | 56 } |
OLD | NEW |