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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/CorrectionUtilsTest.java

Issue 22854024: Rename Identifier.getElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: clean-up and fix Created 7 years, 4 months 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
Index: editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/CorrectionUtilsTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/CorrectionUtilsTest.java b/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/CorrectionUtilsTest.java
index 00311f4d8e5c7430ea4fb19d32c007ee32ccbca4..8dd645590fc62c99dfdf88e7c374ebc26bf5abed 100644
--- a/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/CorrectionUtilsTest.java
+++ b/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/CorrectionUtilsTest.java
@@ -767,7 +767,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getLocalOrParameterVariableElement_local() throws Exception {
LocalVariableElement element = mock(LocalVariableElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(element, CorrectionUtils.getLocalOrParameterVariableElement(identifier));
}
@@ -775,7 +775,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getLocalOrParameterVariableElement_method() throws Exception {
Element element = mock(MethodElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(null, CorrectionUtils.getLocalOrParameterVariableElement(identifier));
}
@@ -783,7 +783,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getLocalOrParameterVariableElement_parameter() throws Exception {
ParameterElement element = mock(ParameterElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(element, CorrectionUtils.getLocalOrParameterVariableElement(identifier));
}
@@ -791,7 +791,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getLocalVariableElement_local() throws Exception {
LocalVariableElement element = mock(LocalVariableElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(element, CorrectionUtils.getLocalVariableElement(identifier));
}
@@ -799,7 +799,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getLocalVariableElement_parameter() throws Exception {
ParameterElement element = mock(ParameterElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(null, CorrectionUtils.getLocalVariableElement(identifier));
}
@@ -948,7 +948,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getParameterElement_local() throws Exception {
LocalVariableElement element = mock(LocalVariableElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(null, CorrectionUtils.getParameterElement(identifier));
}
@@ -956,7 +956,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getParameterElement_parameter() throws Exception {
ParameterElement element = mock(ParameterElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(element, CorrectionUtils.getParameterElement(identifier));
}
@@ -1076,7 +1076,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getPropertyAccessorElement_accessor() throws Exception {
PropertyAccessorElement element = mock(PropertyAccessorElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(element, CorrectionUtils.getPropertyAccessorElement(identifier));
}
@@ -1084,7 +1084,7 @@ public class CorrectionUtilsTest extends AbstractDartTest {
public void test_getPropertyAccessorElement_local() throws Exception {
LocalVariableElement element = mock(LocalVariableElement.class);
SimpleIdentifier identifier = ASTFactory.identifier("name");
- identifier.setElement(element);
+ identifier.setStaticElement(element);
// check
assertSame(null, CorrectionUtils.getPropertyAccessorElement(identifier));
}

Powered by Google App Engine
This is Rietveld 408576698