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 import 'dart:isolate'; | 6 import 'dart:isolate'; |
7 | 7 |
8 import 'package:unittest/src/invoker.dart'; | 8 import 'package:unittest/src/backend/invoker.dart'; |
9 import 'package:unittest/src/io.dart'; | 9 import 'package:unittest/src/backend/live_test.dart'; |
10 import 'package:unittest/src/isolate_test.dart'; | 10 import 'package:unittest/src/backend/state.dart'; |
11 import 'package:unittest/src/live_test.dart'; | 11 import 'package:unittest/src/backend/suite.dart'; |
12 import 'package:unittest/src/remote_exception.dart'; | 12 import 'package:unittest/src/runner/isolate_test.dart'; |
13 import 'package:unittest/src/state.dart'; | 13 import 'package:unittest/src/runner/vm_listener.dart'; |
14 import 'package:unittest/src/suite.dart'; | 14 import 'package:unittest/src/util/io.dart'; |
15 import 'package:unittest/src/vm_listener.dart'; | 15 import 'package:unittest/src/util/remote_exception.dart'; |
16 import 'package:unittest/unittest.dart'; | 16 import 'package:unittest/unittest.dart'; |
17 | 17 |
18 import 'utils.dart'; | 18 import 'utils.dart'; |
19 | 19 |
20 /// An isolate that's been spun up for the current test. | 20 /// An isolate that's been spun up for the current test. |
21 /// | 21 /// |
22 /// This is tracked so that it can be killed once the test is done. | 22 /// This is tracked so that it can be killed once the test is done. |
23 Isolate _isolate; | 23 Isolate _isolate; |
24 | 24 |
25 /// A live test that's running for the current test. | 25 /// A live test that's running for the current test. |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 VmListener.start(sendPort, () => () { | 369 VmListener.start(sendPort, () => () { |
370 test("multiple errors", () { | 370 test("multiple errors", () { |
371 Invoker.current.addOutstandingCallback(); | 371 Invoker.current.addOutstandingCallback(); |
372 new Future(() => throw "one"); | 372 new Future(() => throw "one"); |
373 new Future(() => throw "two"); | 373 new Future(() => throw "two"); |
374 new Future(() => throw "three"); | 374 new Future(() => throw "three"); |
375 new Future(() => throw "four"); | 375 new Future(() => throw "four"); |
376 }); | 376 }); |
377 }); | 377 }); |
378 } | 378 } |
OLD | NEW |