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 @TestOn("vm") |
| 6 |
5 import 'dart:async'; | 7 import 'dart:async'; |
6 import 'dart:isolate'; | 8 import 'dart:isolate'; |
7 | 9 |
8 import 'package:unittest/src/backend/invoker.dart'; | 10 import 'package:unittest/src/backend/invoker.dart'; |
9 import 'package:unittest/src/backend/live_test.dart'; | 11 import 'package:unittest/src/backend/live_test.dart'; |
10 import 'package:unittest/src/backend/state.dart'; | 12 import 'package:unittest/src/backend/state.dart'; |
11 import 'package:unittest/src/backend/suite.dart'; | 13 import 'package:unittest/src/backend/suite.dart'; |
12 import 'package:unittest/src/runner/vm/isolate_listener.dart'; | 14 import 'package:unittest/src/runner/vm/isolate_listener.dart'; |
13 import 'package:unittest/src/runner/vm/isolate_test.dart'; | 15 import 'package:unittest/src/runner/vm/isolate_test.dart'; |
14 import 'package:unittest/src/util/io.dart'; | 16 import 'package:unittest/src/util/io.dart'; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 IsolateListener.start(sendPort, () => () { | 371 IsolateListener.start(sendPort, () => () { |
370 test("multiple errors", () { | 372 test("multiple errors", () { |
371 Invoker.current.addOutstandingCallback(); | 373 Invoker.current.addOutstandingCallback(); |
372 new Future(() => throw "one"); | 374 new Future(() => throw "one"); |
373 new Future(() => throw "two"); | 375 new Future(() => throw "two"); |
374 new Future(() => throw "three"); | 376 new Future(() => throw "three"); |
375 new Future(() => throw "four"); | 377 new Future(() => throw "four"); |
376 }); | 378 }); |
377 }); | 379 }); |
378 } | 380 } |
OLD | NEW |