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:unittest/unittest.dart'; | 5 import 'package:unittest/unittest.dart'; |
6 | 6 |
7 thrower() async { | 7 thrower() async { |
8 throw 'oops'; | 8 throw 'oops'; |
9 } | 9 } |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ])); | 63 ])); |
64 } | 64 } |
65 | 65 |
66 // Test for correct linkage. | 66 // Test for correct linkage. |
67 try { | 67 try { |
68 await thrower(); | 68 await thrower(); |
69 } catch(e, st) { | 69 } catch(e, st) { |
70 expect(st.toString(), stringContainsInOrder([ | 70 expect(st.toString(), stringContainsInOrder([ |
71 'thrower', '.dart:8', | 71 'thrower', '.dart:8', |
72 '<asynchronous suspension>', | 72 '<asynchronous suspension>', |
73 'main', '.dart:67', | 73 'main', '.dart:68', |
74 ])); | 74 ])); |
75 } | 75 } |
76 } | 76 } |
OLD | NEW |