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 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:stack_trace/stack_trace.dart'; | 7 import 'package:stack_trace/stack_trace.dart'; |
8 | 8 |
9 import '../backend/group.dart'; | |
10 import '../frontend/expect.dart'; | 9 import '../frontend/expect.dart'; |
11 import '../runner/load_suite.dart'; | 10 import '../runner/load_suite.dart'; |
12 import '../utils.dart'; | 11 import '../utils.dart'; |
13 import 'closed_exception.dart'; | 12 import 'closed_exception.dart'; |
| 13 import 'group.dart'; |
14 import 'live_test.dart'; | 14 import 'live_test.dart'; |
15 import 'live_test_controller.dart'; | 15 import 'live_test_controller.dart'; |
| 16 import 'message.dart'; |
16 import 'metadata.dart'; | 17 import 'metadata.dart'; |
17 import 'operating_system.dart'; | 18 import 'operating_system.dart'; |
18 import 'outstanding_callback_counter.dart'; | 19 import 'outstanding_callback_counter.dart'; |
19 import 'state.dart'; | 20 import 'state.dart'; |
20 import 'suite.dart'; | 21 import 'suite.dart'; |
21 import 'test.dart'; | 22 import 'test.dart'; |
22 import 'test_platform.dart'; | 23 import 'test_platform.dart'; |
23 | 24 |
24 /// A test in this isolate. | 25 /// A test in this isolate. |
25 class LocalTest extends Test { | 26 class LocalTest extends Test { |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 296 |
296 _controller.completer.complete(); | 297 _controller.completer.complete(); |
297 }, zoneValues: { | 298 }, zoneValues: { |
298 #test.invoker: this, | 299 #test.invoker: this, |
299 // Use the invoker as a key so that multiple invokers can have different | 300 // Use the invoker as a key so that multiple invokers can have different |
300 // outstanding callback counters at once. | 301 // outstanding callback counters at once. |
301 _counterKey: outstandingCallbacksForBody, | 302 _counterKey: outstandingCallbacksForBody, |
302 _closableKey: true | 303 _closableKey: true |
303 }, | 304 }, |
304 zoneSpecification: new ZoneSpecification( | 305 zoneSpecification: new ZoneSpecification( |
305 print: (self, parent, zone, line) => _controller.print(line)), | 306 print: (self, parent, zone, line) => |
| 307 _controller.message(new Message.print(line))), |
306 onError: _handleError); | 308 onError: _handleError); |
307 }); | 309 }); |
308 } | 310 } |
309 } | 311 } |
OLD | NEW |