mirror of
https://github.com/beautifier/js-beautify.git
synced 2025-02-17 11:50:53 +00:00
add test to ensure that unformatted tags do not have spaces put between them
This commit is contained in:
parent
9c1a014480
commit
d1310ab929
@ -2590,6 +2590,10 @@ function run_html_tests(test_obj, Urlencoded, js_beautify, html_beautify, css_be
|
||||
'</ul>');
|
||||
test_fragment('<div class="searchform"><input type="text" value="" name="s" id="s" /><input type="submit" id="searchsubmit" value="Search" /></div>');
|
||||
test_fragment('<div class="searchform"><input type="text" value="" name="s" id="s"><input type="submit" id="searchsubmit" value="Search"></div>');
|
||||
test_fragment(
|
||||
'<p>\n' +
|
||||
' <a href="/test/"><img src="test.jpg" /></a><a href="/test/"><img src="test.jpg" /></a>\n' +
|
||||
'</p>');
|
||||
|
||||
|
||||
//============================================================
|
||||
|
@ -759,6 +759,7 @@ exports.test_data = {
|
||||
{ fragment: true, unchanged: '<ul>\n <li>\n <span class="octicon octicon-person"></span>\n <a href="/contact/">Kontakt</a>\n </li>\n</ul>' },
|
||||
{ fragment: true, unchanged: '<div class="searchform"><input type="text" value="" name="s" id="s" /><input type="submit" id="searchsubmit" value="Search" /></div>' },
|
||||
{ fragment: true, unchanged: '<div class="searchform"><input type="text" value="" name="s" id="s"><input type="submit" id="searchsubmit" value="Search"></div>' },
|
||||
{ fragment: true, unchanged: '<p>\n <a href="/test/"><img src="test.jpg" /></a><a href="/test/"><img src="test.jpg" /></a>\n</p>' }
|
||||
]
|
||||
}, {
|
||||
name: "File starting with comment",
|
||||
|
Loading…
x
Reference in New Issue
Block a user