Chromium Code Reviews| 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..09303ece33fea3a6edb0da10d27b855b81c2525d 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.isTrue(identical(element1.kind, ElementKind.FUNCTION)); |
| + Expect.isTrue(identical(element2.kind, ElementKind.FUNCTION)); |
|
Lasse Reichstein Nielsen
2012/11/12 13:10:41
Again, consider using ==.
floitsch
2012/11/12 22:18:43
Done.
|
| FunctionSignature signature1 = element1.computeSignature(compiler); |
| FunctionSignature signature2 = element2.computeSignature(compiler); |