Chromium Code Reviews| 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) { |