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 04ca4e30b67891edc7fa92da2a5cdbaa33f6c14c..527c79ff0193619108e81cef2c5a9e7f60729d27 100644 |
| --- a/tests/compiler/dart2js/resolver_test.dart |
| +++ b/tests/compiler/dart2js/resolver_test.dart |
| @@ -12,6 +12,7 @@ import "compiler_helper.dart"; |
| import "parser_helper.dart"; |
| import '../../../sdk/lib/_internal/compiler/implementation/dart_types.dart'; |
| +import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart'; |
| Node buildIdentifier(String name) => new Identifier(scan(name)); |
| @@ -613,15 +614,16 @@ testConstructorArgumentMismatch() { |
| testTopLevelFields() { |
| MockCompiler compiler = new MockCompiler(); |
| compiler.parseScript("int a;"); |
| - VariableElement element = compiler.mainApp.find("a"); |
| + VariableElementX element = compiler.mainApp.find("a"); |
| Expect.equals(ElementKind.FIELD, element.kind); |
| + print(element.runtimeType); |
|
Johnni Winther
2014/05/05 11:27:09
Remove debug code.
|
| VariableDefinitions node = element.variables.parseNode(element, compiler); |
| Identifier typeName = node.type.typeName; |
| Expect.equals(typeName.source, 'int'); |
| compiler.parseScript("var b, c;"); |
| - VariableElement bElement = compiler.mainApp.find("b"); |
| - VariableElement cElement = compiler.mainApp.find("c"); |
| + VariableElementX bElement = compiler.mainApp.find("b"); |
| + VariableElementX cElement = compiler.mainApp.find("c"); |
| Expect.equals(ElementKind.FIELD, bElement.kind); |
| Expect.equals(ElementKind.FIELD, cElement.kind); |
| Expect.isTrue(bElement != cElement); |