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

Unified Diff: tests/compiler/dart2js/type_equals_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/type_checker_test.dart ('k') | tests/compiler/dart2js/uri_extras_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_equals_test.dart
diff --git a/tests/compiler/dart2js/type_equals_test.dart b/tests/compiler/dart2js/type_equals_test.dart
index 72eef67c1b2a886c17e8c34b50056c8664878946..3c621a095f07ab41494a71405f30c6a84381bd8b 100644
--- a/tests/compiler/dart2js/type_equals_test.dart
+++ b/tests/compiler/dart2js/type_equals_test.dart
@@ -18,8 +18,8 @@ bool test(compiler, String name1, String name2, {bool expect}) {
var element2 = clazz.buildScope().lookup(buildSourceString(name2));
Expect.isNotNull(element1);
Expect.isNotNull(element2);
- Expect.isTrue(element1.kind === ElementKind.FUNCTION);
- Expect.isTrue(element2.kind === ElementKind.FUNCTION);
+ Expect.equals(element1.kind, ElementKind.FUNCTION);
+ Expect.equals(element2.kind, ElementKind.FUNCTION);
FunctionSignature signature1 = element1.computeSignature(compiler);
FunctionSignature signature2 = element2.computeSignature(compiler);
« no previous file with comments | « tests/compiler/dart2js/type_checker_test.dart ('k') | tests/compiler/dart2js/uri_extras_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698