[html] test for #58435

This commit is contained in:
Martin Aeschlimann
2018-09-18 17:44:28 +02:00
parent 42c0dd53dc
commit 7540711d86

View File

@@ -161,4 +161,52 @@ suite('HTML Embedded Formatting', () => {
].join('\n')
);
});
});
test('#58435', () => {
let options = {
html: {
format: {
contentUnformatted: 'textarea'
}
}
};
var content = [
'<html>',
'',
'<body>',
' <textarea name= "" id ="" cols="30" rows="10">',
' </textarea>',
'</body>',
'',
'</html>',
].join('\n');
var expected = [
'<html>',
'',
'<body>',
' <textarea name="" id="" cols="30" rows="10">',
' </textarea>',
'</body>',
'',
'</html>',
].join('\n');
assertFormat(content, expected, options);
});
}); /*
content_unformatted: Array(4)["pre", "code", "textarea", …]
end_with_newline: false
eol: "\n"
extra_liners: Array(3)["head", "body", "/html"]
indent_char: "\t"
indent_handlebars: false
indent_inner_html: false
indent_size: 1
max_preserve_newlines: 32786
preserve_newlines: true
unformatted: Array(1)["wbr"]
wrap_attributes: "auto"
wrap_attributes_indent_size: undefined
wrap_line_length: 120*/