Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: tests/isolate/port_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/isolate/isolate_negative_test.dart ('k') | tests/isolate/serialization_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "package:expect/expect.dart";
10 import 'dart:isolate'; 11 import 'dart:isolate';
11 import '../../pkg/unittest/lib/matcher.dart'; 12 import '../../pkg/unittest/lib/matcher.dart';
12 13
13 main() { 14 main() {
14 testHashCode(); 15 testHashCode();
15 testEquals(); 16 testEquals();
16 testMap(); 17 testMap();
17 } 18 }
18 19
19 void testHashCode() { 20 void testHashCode() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 Expect.isFalse(map.containsKey(rp0.toSendPort())); 53 Expect.isFalse(map.containsKey(rp0.toSendPort()));
53 Expect.equals(map[rp1.toSendPort()], 87); 54 Expect.equals(map[rp1.toSendPort()], 87);
54 55
55 map.remove(rp1.toSendPort()); 56 map.remove(rp1.toSendPort());
56 Expect.isFalse(map.containsKey(rp0.toSendPort())); 57 Expect.isFalse(map.containsKey(rp0.toSendPort()));
57 Expect.isFalse(map.containsKey(rp1.toSendPort())); 58 Expect.isFalse(map.containsKey(rp1.toSendPort()));
58 59
59 rp0.close(); 60 rp0.close();
60 rp1.close(); 61 rp1.close();
61 } 62 }
OLDNEW
« no previous file with comments | « tests/isolate/isolate_negative_test.dart ('k') | tests/isolate/serialization_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698