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

Unified Diff: tests/compiler/dart2js_extra/no_such_method_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/compiler/dart2js_extra/nan_negate_test.dart ('k') | tests/corelib/expando_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/no_such_method_test.dart
diff --git a/tests/compiler/dart2js_extra/no_such_method_test.dart b/tests/compiler/dart2js_extra/no_such_method_test.dart
index f1047dfab3b42b2c9b3b4c03e59b40c68f81da74..0a0ac6bef79714c68eb36f11d0593baec0321c89 100644
--- a/tests/compiler/dart2js_extra/no_such_method_test.dart
+++ b/tests/compiler/dart2js_extra/no_such_method_test.dart
@@ -30,23 +30,23 @@ main() {
var info = a.foo();
Expect.equals('foo', info.name);
Expect.isTrue(info.args.isEmpty);
- Expect.isTrue(info.receiver === a);
+ Expect.isTrue(identical(info.receiver, a));
info = a.foo(2);
Expect.equals('foo', info.name);
Expect.isTrue(info.args.length == 1);
- Expect.isTrue(info.args[0] === 2);
- Expect.isTrue(info.receiver === a);
+ Expect.isTrue(info.args[0] == 2);
+ Expect.isTrue(identical(info.receiver, a));
info = a.bar;
Expect.equals('bar', info.name);
Expect.isTrue(info.args.length == 0);
- Expect.isTrue(info.receiver === a);
+ Expect.isTrue(identical(info.receiver, a));
a.bar = 2;
info = topLevelInfo;
Expect.equals('bar', info.name);
Expect.isTrue(info.args.length == 1);
- Expect.isTrue(info.args[0] === 2);
- Expect.isTrue(info.receiver === a);
+ Expect.isTrue(info.args[0] == 2);
+ Expect.isTrue(identical(info.receiver, a));
}
« no previous file with comments | « tests/compiler/dart2js_extra/nan_negate_test.dart ('k') | tests/corelib/expando_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698