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

Unified Diff: tests/language/static_const_field_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/language/scope_variable_test.dart ('k') | tests/language/strict_equal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/static_const_field_test.dart
diff --git a/tests/language/static_const_field_test.dart b/tests/language/static_const_field_test.dart
index a9ddf7377d7c81ac06d82bf26a4390296843985b..510f08c425d09f11866f924d59d847e40bba408c 100644
--- a/tests/language/static_const_field_test.dart
+++ b/tests/language/static_const_field_test.dart
@@ -36,12 +36,12 @@ class StaticFinalFieldTest {
Expect.equals(15, A.c);
Expect.equals(8, A.b);
Expect.equals(5, A.a.n);
- Expect.equals(true, 8 === A.b);
- Expect.equals(true, A.a === A.d);
- Expect.equals(true, A.s1 === A.s2);
- Expect.equals(false, A.s1 === A.s3);
- Expect.equals(false, A.s1 === A.b);
- Expect.equals(true, A.d1 === A.d2);
+ Expect.equals(true, identical(8, A.b));
+ Expect.equals(true, identical(A.a, A.d));
+ Expect.equals(true, identical(A.s1, A.s2));
+ Expect.equals(false, identical(A.s1, A.s3));
+ Expect.equals(false, identical(A.s1, A.b));
+ Expect.equals(true, identical(A.d1, A.d2));
Expect.equals(true, Spain.SD == "Salvador Dali");
Expect.equals(true, A.artist2 == "Alberto Giacometti");
Expect.equals(true, A.architect1 == "Antoni Gaudi");
« no previous file with comments | « tests/language/scope_variable_test.dart ('k') | tests/language/strict_equal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698