| 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 dart.pkg.isolate.isolaterunner_test; | 5 library dart.pkg.isolate.isolaterunner_test; |
| 6 | 6 |
| 7 import "package:isolate/isolaterunner.dart"; | 7 import 'dart:async' show Future; |
| 8 import "package:unittest/unittest.dart"; | 8 import 'dart:isolate' show Capability; |
| 9 import "dart:async" show Future; | 9 |
| 10 import "dart:isolate" show Capability; | 10 import 'package:isolate/isolate_runner.dart'; |
| 11 import 'package:unittest/unittest.dart'; |
| 11 | 12 |
| 12 const MS = const Duration(milliseconds: 1); | 13 const MS = const Duration(milliseconds: 1); |
| 13 | 14 |
| 14 void main() { | 15 void main() { |
| 15 test("create-close", testCreateClose); | 16 test("create-close", testCreateClose); |
| 16 test("create-run-close", testCreateRunClose); | 17 test("create-run-close", testCreateRunClose); |
| 17 test("separate-isolates", testSeparateIsolates); | 18 test("separate-isolates", testSeparateIsolates); |
| 18 testIsolateFunctions(); | 19 testIsolateFunctions(); |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 return isolate.kill(); | 106 return isolate.kill(); |
| 106 }); | 107 }); |
| 107 }); | 108 }); |
| 108 } | 109 } |
| 109 | 110 |
| 110 id(x) => x; | 111 id(x) => x; |
| 111 | 112 |
| 112 var _global; | 113 var _global; |
| 113 getGlobal(_) => _global; | 114 getGlobal(_) => _global; |
| 114 void setGlobal(v) => _global = v; | 115 void setGlobal(v) => _global = v; |
| OLD | NEW |