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

Unified Diff: tests/isolate/port_test.dart

Issue 11698002: Fix instance of test for classes that implement call. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | tests/language/call_operator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/port_test.dart
===================================================================
--- tests/isolate/port_test.dart (revision 16540)
+++ tests/isolate/port_test.dart (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -19,8 +19,8 @@
void testHashCode() {
ReceivePort rp0 = new ReceivePort();
ReceivePort rp1 = new ReceivePort();
- expect(rp0.toSendPort().hashCode, rp0.toSendPort().hashCode);
- expect(rp1.toSendPort().hashCode, rp1.toSendPort().hashCode);
+ Expect.equals(rp0.toSendPort().hashCode, rp0.toSendPort().hashCode);
+ Expect.equals(rp1.toSendPort().hashCode, rp1.toSendPort().hashCode);
rp0.close();
rp1.close();
}
@@ -28,9 +28,9 @@
void testEquals() {
ReceivePort rp0 = new ReceivePort();
ReceivePort rp1 = new ReceivePort();
- expect(rp0.toSendPort(), rp0.toSendPort());
- expect(rp1.toSendPort(), rp1.toSendPort());
- expect(rp0.toSendPort() == rp1.toSendPort(), isFalse);
+ Expect.equals(rp0.toSendPort(), rp0.toSendPort());
+ Expect.equals(rp1.toSendPort(), rp1.toSendPort());
+ Expect.isFalse(rp0.toSendPort() == rp1.toSendPort());
rp0.close();
rp1.close();
}
@@ -41,20 +41,20 @@
final map = new Map<SendPort, int>();
map[rp0.toSendPort()] = 42;
map[rp1.toSendPort()] = 87;
- expect(map[rp0.toSendPort()], 42);
- expect(map[rp1.toSendPort()], 87);
+ Expect.equals(map[rp0.toSendPort()], 42);
+ Expect.equals(map[rp1.toSendPort()], 87);
map[rp0.toSendPort()] = 99;
- expect(map[rp0.toSendPort()], 99);
- expect(map[rp1.toSendPort()], 87);
+ Expect.equals(map[rp0.toSendPort()], 99);
+ Expect.equals(map[rp1.toSendPort()], 87);
map.remove(rp0.toSendPort());
- expect(map.containsKey(rp0.toSendPort()), isFalse);
- expect(map[rp1.toSendPort()], 87);
+ Expect.isFalse(map.containsKey(rp0.toSendPort()));
+ Expect.equals(map[rp1.toSendPort()], 87);
map.remove(rp1.toSendPort());
- expect(map.containsKey(rp0.toSendPort()), isFalse);
- expect(map.containsKey(rp1.toSendPort()), isFalse);
+ Expect.isFalse(map.containsKey(rp0.toSendPort()));
+ Expect.isFalse(map.containsKey(rp1.toSendPort()));
rp0.close();
rp1.close();
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | tests/language/call_operator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698