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

Unified Diff: pkg/analysis_server/test/services/refactoring/inline_local_test.dart

Issue 1042033002: Issue 23018. Fix for inlining multiline strings with leading whitespaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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: 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 8e8b6aba3f563a837ce281fef8b23fe2d65e459e..1e646ffd2319a99dd1d3d92e6ae6c5664eeaadb0 100644
--- a/pkg/analysis_server/test/services/refactoring/inline_local_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/inline_local_test.dart
@@ -257,6 +257,29 @@ main() {
''');
}
+ test_OK_intoStringInterpolation_string_multiLineIntoMulti_leadingSpaces() {
+ indexTestUnit(r"""
+main() {
+ String a = '''\ \
+a
+a''';
+ String b = '''
+$a
+bbb''';
+}
+""");
+ _createRefactoring('a =');
+ // validate change
+ return assertSuccessfulRefactoring(r"""
+main() {
+ String b = '''
+a
+a
+bbb''';
+}
+""");
+ }
+
test_OK_intoStringInterpolation_string_multiLineIntoMulti_unixEOL() {
indexTestUnit(r"""
main() {

Powered by Google App Engine
This is Rietveld 408576698