mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 17:45:01 +00:00
Avoid multiline string literal in svgelement test.
R=whesse@google.com BUG= Review URL: https://codereview.chromium.org//1219673002.
This commit is contained in:
parent
9f00e05918
commit
3b34c17909
|
@ -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', () =>
|
||||
|
|
Loading…
Reference in a new issue