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

Unified Diff: tests/isolate/serialization_test.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « tests/isolate/mandel_isolate_test.dart ('k') | tests/language/bool_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/serialization_test.dart
diff --git a/tests/isolate/serialization_test.dart b/tests/isolate/serialization_test.dart
index 14466ebc3bb85c0be9f4cf7f5999dff0794a9763..c69042d173d6e5ba9c84d2a719137a59bdb783c6 100644
--- a/tests/isolate/serialization_test.dart
+++ b/tests/isolate/serialization_test.dart
@@ -44,10 +44,10 @@ void testAllTypes(Function f) {
var c = [ a, b, a, b, a ];
var copied = f(c);
verify(c, copied);
- Expect.isFalse(c === copied);
- Expect.isTrue(copied[0] === copied[2]);
- Expect.isTrue(copied[0] === copied[4]);
- Expect.isTrue(copied[1] === copied[3]);
+ Expect.isFalse(identical(c, copied));
+ Expect.identical(copied[0], copied[2]);
+ Expect.identical(copied[0], copied[4]);
+ Expect.identical(copied[1], copied[3]);
}
void copyAndVerify(o, Function f) {
« no previous file with comments | « tests/isolate/mandel_isolate_test.dart ('k') | tests/language/bool_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698