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

Unified Diff: pkg/analyzer/test/generated/ast_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/analyzer/test/generated/ast_test.dart
diff --git a/pkg/analyzer/test/generated/ast_test.dart b/pkg/analyzer/test/generated/ast_test.dart
index 535c75b68eef4e64a30ae948d8329ceee330e474..ef6ed1673f8a5aaba0bea34353f80a933e6257ad 100644
--- a/pkg/analyzer/test/generated/ast_test.dart
+++ b/pkg/analyzer/test/generated/ast_test.dart
@@ -1305,6 +1305,11 @@ class SimpleStringLiteralTest extends ParserTestCase {
TokenFactory.tokenFromString("r\"\"\"X\"\"\""), "X").contentsOffset, 4);
expect(new SimpleStringLiteral(
TokenFactory.tokenFromString("r'''X'''"), "X").contentsOffset, 4);
+ // leading whitespace
+ expect(new SimpleStringLiteral(
+ TokenFactory.tokenFromString("''' \ \nX''"), "X").contentsOffset, 6);
+ expect(new SimpleStringLiteral(
+ TokenFactory.tokenFromString('r""" \ \nX"""'), "X").contentsOffset, 7);
}
void test_isMultiline() {
« pkg/analyzer/lib/src/generated/ast.dart ('K') | « pkg/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698