add test to ensure that unformatted tags do not have spaces put between them

This commit is contained in:
Joshua Haines 2017-03-14 10:09:51 +10:00
parent 9c1a014480
commit d1310ab929
2 changed files with 5 additions and 0 deletions

View File

@ -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>');
//============================================================

View File

@ -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",