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

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: 80chars. 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
Index: tests/isolate/serialization_test.dart
diff --git a/tests/isolate/serialization_test.dart b/tests/isolate/serialization_test.dart
index 14466ebc3bb85c0be9f4cf7f5999dff0794a9763..7f669f8649d88759ab14797b58eeaac472d30c53 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.isTrue(identical(copied[0], copied[2]));
Lasse Reichstein Nielsen 2012/11/12 13:10:41 Expect.identical
floitsch 2012/11/12 22:18:43 Done.
+ Expect.isTrue(identical(copied[0], copied[4]));
+ Expect.isTrue(identical(copied[1], copied[3]));
}
void copyAndVerify(o, Function f) {

Powered by Google App Engine
This is Rietveld 408576698