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 library unittest.backend.invoker; | 5 library unittest.backend.invoker; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:stack_trace/stack_trace.dart'; | 9 import 'package:stack_trace/stack_trace.dart'; |
10 | 10 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return new Future.sync(_test._tearDown); | 171 return new Future.sync(_test._tearDown); |
172 }).catchError(Zone.current.handleUncaughtError).then((_) { | 172 }).catchError(Zone.current.handleUncaughtError).then((_) { |
173 timer.cancel(); | 173 timer.cancel(); |
174 _controller.setState( | 174 _controller.setState( |
175 new State(Status.complete, liveTest.state.result)); | 175 new State(Status.complete, liveTest.state.result)); |
176 | 176 |
177 // Use [Timer.run] here to avoid starving the DOM or other | 177 // Use [Timer.run] here to avoid starving the DOM or other |
178 // non-microtask events. | 178 // non-microtask events. |
179 Timer.run(_controller.completer.complete); | 179 Timer.run(_controller.completer.complete); |
180 }); | 180 }); |
181 }, zoneValues: {#unittest.invoker: this}, onError: handleError); | 181 }, |
| 182 zoneSpecification: new ZoneSpecification( |
| 183 print: (self, parent, zone, line) => _controller.print(line)), |
| 184 zoneValues: {#unittest.invoker: this}, |
| 185 onError: handleError); |
182 }); | 186 }); |
183 } | 187 } |
184 } | 188 } |
OLD | NEW |