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

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

Issue 11305007: Getter with parameters is error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 ac40c62565502d5771f75e18ccd63e25e5481c2a..1b9cbd4abc76f468e1f58e25db02e197596bc466 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
@@ -15,6 +15,12 @@ package com.google.dart.tools.core.utilities.ast;
import static org.fest.assertions.Assertions.assertThat;
+import java.util.List;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IResource;
+
import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import com.google.dart.compiler.DartCompilationError;
@@ -32,12 +38,6 @@ import com.google.dart.tools.core.model.Type;
import com.google.dart.tools.core.test.util.TestProject;
import com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities;
-import junit.framework.TestCase;
-
-import org.eclipse.core.resources.IResource;
-
-import java.util.List;
-
/**
* Test for {@link DartElementLocator}.
*/
@@ -513,13 +513,13 @@ public class DartElementLocatorTest extends TestCase {
"// filler filler filler filler filler filler filler filler filler filler filler",
"process(x) {}",
"class A {",
- " get test() {}",
+ " get test {}",
" set test(x) {}",
"}",
""),
- "est() {",
+ "est {",
Method.class,
- "test() {",
+ "test {",
4);
}
@@ -529,7 +529,7 @@ public class DartElementLocatorTest extends TestCase {
"// filler filler filler filler filler filler filler filler filler filler filler",
"process(x) {}",
"class A {",
- " get test() {}",
+ " get test {}",
" set test(x) {}",
"}",
"f() {",
@@ -539,7 +539,7 @@ public class DartElementLocatorTest extends TestCase {
""),
"test);",
Method.class,
- "test() {",
+ "test {",
4);
}
@@ -625,7 +625,7 @@ public class DartElementLocatorTest extends TestCase {
"// filler filler filler filler filler filler filler filler filler filler filler",
"process(x) {}",
"class A {",
- " get test() {}",
+ " get test {}",
" set test(x) {}",
"}",
""),
@@ -640,7 +640,7 @@ public class DartElementLocatorTest extends TestCase {
formatLines(
"// filler filler filler filler filler filler filler filler filler filler filler",
"class A {",
- " get test() {}",
+ " get test {}",
" set test(x) {}",
"}",
"f() {",

Powered by Google App Engine
This is Rietveld 408576698