| 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.test.registry; | 5 library dart.pkg.isolate.test.registry; |
| 6 | 6 |
| 7 import "package:isolate/isolaterunner.dart"; | 7 import 'dart:async'; |
| 8 import "package:isolate/registry.dart"; | 8 import 'dart:isolate'; |
| 9 import "dart:async"; | |
| 10 import "dart:isolate"; | |
| 11 | 9 |
| 12 import "package:unittest/unittest.dart"; | 10 import 'package:isolate/isolate_runner.dart'; |
| 11 import 'package:isolate/registry.dart'; |
| 12 |
| 13 import 'package:unittest/unittest.dart'; |
| 13 | 14 |
| 14 const MS = const Duration(milliseconds: 1); | 15 const MS = const Duration(milliseconds: 1); |
| 15 | 16 |
| 16 void main() { | 17 void main() { |
| 17 testLookup(); | 18 testLookup(); |
| 18 testAddLookup(); | 19 testAddLookup(); |
| 19 testAddRemoveTags(); | 20 testAddRemoveTags(); |
| 20 testRemove(); | 21 testRemove(); |
| 21 testCrossIsolate(); | 22 testCrossIsolate(); |
| 22 testTimeout(); | 23 testTimeout(); |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 } | 530 } |
| 530 | 531 |
| 531 class Element { | 532 class Element { |
| 532 final int id; | 533 final int id; |
| 533 Element(this.id); | 534 Element(this.id); |
| 534 int get hashCode => id; | 535 int get hashCode => id; |
| 535 bool operator ==(Object other) => other is Element && id == other.id; | 536 bool operator ==(Object other) => other is Element && id == other.id; |
| 536 } | 537 } |
| 537 | 538 |
| 538 void topLevelFunction() {} | 539 void topLevelFunction() {} |
| OLD | NEW |