test/parser_test.rb in trac-wiki-0.3.24 vs test/parser_test.rb in trac-wiki-0.3.25
- old
+ new
@@ -1081,9 +1081,10 @@
tc "<p>alert(666)</p>\n", "<script>alert(666)</script>", allow_html: true
tc "<p><b>T</b>E</p>\n", "<p><b>T</b>E</p>", allow_html: true
tc "<p><span>Span</span></p>\n", "<span>Span</span>\n", allow_html: true
tc "<p><strong><span>Span</span></strong></p>\n", "**<span>Span</span>**\n", allow_html: true
tc "<div class=\"ahoj\">Div</div>\n", "<div class=\"ahoj\">Div</div>\n", allow_html: true
+ tc "<div style=\"background:red\">Div</div>\n", "<div style=\"background:red\">Div</div>\n", allow_html: true
tc "<p><strong>ahoj</strong></p>\n<div class=\"ahoj\">Div</div>\n", "**ahoj<div class=\"ahoj\">Div</div>\n", allow_html: true
tc "<p><span>Span</span><span>Span</span></p>\n", "<span>Span</span><span>Span</span>\n", allow_html: true
tc "<p><em><b>boldoitali</b></em>cE</p>\n", "<p>''<b>boldoitali''c</b>E</p>", allow_html: true
tc "<p><b>blabla</b></p>\n<p>endE</p>\n", "<p><b>bla</html>bla</p>end</b>E</p>", allow_html: true
tc "<p>baf</p>\n", "\n\n\nbaf\n\n\n", allow_html: true