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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java

Issue 10915031: Issue 4796. Support for renaming named parameters in invocations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
index 71b5b50bfa513b7e0a641c07532269baff56b5c8..b6f16b72234c3ba3fd95ba6afbf033583ec60f24 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
@@ -623,6 +623,24 @@ public class DartElementLocatorTest extends TestCase {
2);
}
+ public void test_VariableElement_parameter_namedInInvocation() throws Exception {
+ testElementLocator(
+ formatLines(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "class A {",
+ " static f({test: 0}) {}",
+ "}",
+ "",
+ "void main() {",
+ " A.f(test: 42);",
+ "}",
+ ""),
+ "test: 42",
+ DartVariableDeclaration.class,
+ "test: 0",
+ 4);
+ }
+
public void test_VariableElement_parameter_reference_inClassMethod() throws Exception {
testElementLocator(
formatLines(

Powered by Google App Engine
This is Rietveld 408576698