Chromium Code Reviews| Index: tests/compiler/dart2js/resolver_test.dart |
| diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart |
| index 5d193b9c4199d651e240447b1272094cdb0794c6..814a51a2de6fbf4e0a85576055fac42f3dcaec51 100644 |
| --- a/tests/compiler/dart2js/resolver_test.dart |
| +++ b/tests/compiler/dart2js/resolver_test.dart |
| @@ -157,7 +157,7 @@ testSuperCalls() { |
| Send superCall = node.body.asReturn().expression; |
| FunctionElement called = mapping[superCall]; |
| - Expect.isTrue(called !== null); |
| + Expect.isTrue(called != null); |
|
Lasse Reichstein Nielsen
2012/11/12 13:10:41
Expect.isNotNull(called);
Ditto in other similar p
floitsch
2012/11/12 22:18:43
Done.
|
| Expect.equals(fooA, called); |
| } |
| @@ -521,8 +521,8 @@ testNewExpression() { |
| compiler.parseScript("class A {} foo() { print(new A()); }"); |
| ClassElement aElement = compiler.mainApp.find(buildSourceString('A')); |
| FunctionElement fooElement = compiler.mainApp.find(buildSourceString('foo')); |
| - Expect.isTrue(aElement !== null); |
| - Expect.isTrue(fooElement !== null); |
| + Expect.isTrue(aElement != null); |
| + Expect.isTrue(fooElement != null); |
| fooElement.parseNode(compiler); |
| compiler.resolver.resolve(fooElement); |
| @@ -569,7 +569,7 @@ resolveConstructor(String script, String statement, String className, |
| ClassElement classElement = |
| compiler.mainApp.find(buildSourceString(className)); |
| Element element; |
| - if (constructor !== '') { |
| + if (constructor != '') { |
| element = classElement.lookupConstructor( |
| new Selector.callConstructor(buildSourceString(constructor), |
| classElement.getLibrary())); |