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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ConvertMethodToGetterRefactoringTest.java

Issue 10916211: Issue 4752. When convert to getter, remove also () (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use setter in *Info Created 8 years, 3 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.ui_test/src/com/google/dart/tools/ui/refactoring/ConvertMethodToGetterRefactoringTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ConvertMethodToGetterRefactoringTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ConvertMethodToGetterRefactoringTest.java
index 11202c844c6b174ddaf8cf049ffc937b91bc65ba..d33f66af6986726ac4a5912ba3d39d9b6e9210f6 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ConvertMethodToGetterRefactoringTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ConvertMethodToGetterRefactoringTest.java
@@ -58,7 +58,7 @@ public final class ConvertMethodToGetterRefactoringTest extends RefactoringTest
doSuccessfullRefactoring();
assertTestUnitContent(
"// filler filler filler filler filler filler filler filler filler filler",
- "get test() => 42;",
+ "get test => 42;",
"main() {",
" var v = test;",
"}");
@@ -93,19 +93,19 @@ public final class ConvertMethodToGetterRefactoringTest extends RefactoringTest
assertTestUnitContent(
"// filler filler filler filler filler filler filler filler filler filler",
"class A {",
- " get test() => 1;",
+ " get test => 1;",
"}",
"class B extends A {",
- " get test() => 2;",
+ " get test => 2;",
"}",
"class C extends B {",
- " get test() => 3;",
+ " get test => 3;",
"}",
"class D extends C {",
- " get test() => 4;",
+ " get test => 4;",
"}",
"class E extends D {",
- " get test() => 5;",
+ " get test => 5;",
"}",
"",
"main() {",
@@ -126,7 +126,7 @@ public final class ConvertMethodToGetterRefactoringTest extends RefactoringTest
doSuccessfullRefactoring();
assertTestUnitContent(
"// filler filler filler filler filler filler filler filler filler filler",
- "int get test() => 42;",
+ "int get test => 42;",
"main() {",
" var v = test;",
"}");

Powered by Google App Engine
This is Rietveld 408576698