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

Unified Diff: tests/html/svgelement_test.dart

Issue 1219673002: Avoid multiline string literal in svgelement test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: comments Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/svgelement_test.dart
diff --git a/tests/html/svgelement_test.dart b/tests/html/svgelement_test.dart
index ebef7ab86ef2b93d0f235f4ac88c0838a599b97d..5527dcd2c6e502a173834b9325d8987b61c4615b 100644
--- a/tests/html/svgelement_test.dart
+++ b/tests/html/svgelement_test.dart
@@ -40,11 +40,11 @@ main() {
}
group('additionalConstructors', () {
test('valid', () {
- final svgContent = """
-<svg version="1.1">
- <circle></circle>
- <path></path>
-</svg>""";
+ final svgContent =
+ "<svg version=\"1.1\">\n"
+ " <circle></circle>\n"
+ " <path></path>\n"
+ "</svg>";
final el = new svg.SvgElement.svg(svgContent);
expect(el, isSvgSvgElement);
expect(el.innerHtml, anyOf("<circle></circle><path></path>", '<circle '
@@ -52,9 +52,7 @@ main() {
'xmlns="http://www.w3.org/2000/svg" />'));
expect(el.outerHtml, anyOf(svgContent,
'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">\n '
- '<circle />\n <path />\n</svg>',
- '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">\r\n '
- '<circle />\r\n <path />\r\n</svg>'));
+ '<circle />\n <path />\n</svg>'));
});
test('has no parent', () =>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698