| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Test properties of ports. | 5 // Test properties of ports. |
| 6 // Note: unittest.dart depends on ports, in particular on the behaviour tested | 6 // Note: unittest.dart depends on ports, in particular on the behaviour tested |
| 7 // here. To keep things simple, we don't use the unittest library here. | 7 // here. To keep things simple, we don't use the unittest library here. |
| 8 | 8 |
| 9 #library("PortTest"); | 9 #library("PortTest"); |
| 10 #import("dart:isolate"); | 10 #import("dart:isolate"); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 Expect.equals(false, map.containsKey(rp0.toSendPort())); | 52 Expect.equals(false, map.containsKey(rp0.toSendPort())); |
| 53 Expect.equals(87, map[rp1.toSendPort()]); | 53 Expect.equals(87, map[rp1.toSendPort()]); |
| 54 | 54 |
| 55 map.remove(rp1.toSendPort()); | 55 map.remove(rp1.toSendPort()); |
| 56 Expect.equals(false, map.containsKey(rp0.toSendPort())); | 56 Expect.equals(false, map.containsKey(rp0.toSendPort())); |
| 57 Expect.equals(false, map.containsKey(rp1.toSendPort())); | 57 Expect.equals(false, map.containsKey(rp1.toSendPort())); |
| 58 | 58 |
| 59 rp0.close(); | 59 rp0.close(); |
| 60 rp1.close(); | 60 rp1.close(); |
| 61 } | 61 } |
| OLD | NEW |