Index: pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
diff --git a/pkg/analysis_server/test/services/refactoring/inline_local_test.dart b/pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
index 336bd66baa0e4eb4f53fadfdbbfab1ac69a8d2ae..7af239514772d3b5da51587169b7d246c7e4e4df 100644 |
--- a/pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
+++ b/pkg/analysis_server/test/services/refactoring/inline_local_test.dart |
@@ -164,6 +164,40 @@ main() { |
'''); |
} |
+ test_OK_parenthesis_instanceCreation_intoList() { |
+ indexTestUnit(''' |
+class A {} |
+main() { |
+ var test = new A(); |
+ var list = [test]; |
+} |
+'''); |
+ _createRefactoring('test ='); |
+ // validate change |
+ return assertSuccessfulRefactoring(''' |
+class A {} |
+main() { |
+ var list = [new A()]; |
+} |
+'''); |
+ } |
+ |
+ test_OK_parenthesis_plus_intoMultiply() { |
+ indexTestUnit(''' |
+main() { |
+ var test = 1 + 2; |
+ print(test * 3); |
+} |
+'''); |
+ _createRefactoring('test ='); |
+ // validate change |
+ return assertSuccessfulRefactoring(''' |
+main() { |
+ print((1 + 2) * 3); |
+} |
+'''); |
+ } |
+ |
test_OK_twoUsages() { |
indexTestUnit(''' |
main() { |