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

Unified Diff: pkg/analysis_server/test/edit/refactoring_test.dart

Issue 1522193002: Issue 25251. Fix for extracting string literal part with zero length. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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: pkg/analysis_server/test/edit/refactoring_test.dart
diff --git a/pkg/analysis_server/test/edit/refactoring_test.dart b/pkg/analysis_server/test/edit/refactoring_test.dart
index fcb0568a311714643411409b94b2cfb470afc419..07ee8f49c16c8f4c40222f4f230b7763d341e659 100644
--- a/pkg/analysis_server/test/edit/refactoring_test.dart
+++ b/pkg/analysis_server/test/edit/refactoring_test.dart
@@ -314,6 +314,23 @@ main() {
''');
}
+ solo_test_extractAll_string() {
+ addTestFile('''
+main() {
+ print("foo");
+}
+''');
+ return assertSuccessfulRefactoring(() {
+ return sendStringRequest('oo"', 'res', true);
+ },
+ '''
+main() {
+ var res = "foo";
+ print(res);
+}
+''');
+ }
+
test_extractOne() {
addTestFile('''
main() {

Powered by Google App Engine
This is Rietveld 408576698