test/parser_test.rb in trac-wiki-0.3.28 vs test/parser_test.rb in trac-wiki-0.3.29
- old
+ new
@@ -1250,9 +1250,12 @@
tc "<div class=\"1\">TEST</div>\n", "<div class=\"{{$lineno}}\">TEST</div></p>\n", allow_html: true
tc "<div class=\"A1B1\">TEST</div>\n", "<div class=\"A{{$lineno}}B{{$lineno}}\">TEST</div></p>\n", allow_html: true
tc "<div class=\"AHOJ\">TEST</div>\n", "{{!set ahoj|AHOJ}}<div class=\"{{$ahoj}}\">TEST</div></p>\n", allow_html: true
tc "<div class=\"**AHOJ**\">TEST</div>\n", "{{!set ahoj|AHOJ}}<div class=\"**{{$ahoj}}**\">TEST</div></p>\n", allow_html: true
end
+ it 'should parse label' do
+ tc "<p><label class=\"xxx\" for=\"ble\">AHOJ</label></p>\n", "<label class=\"xxx\" for=\"ble\">AHOJ</label>\n", allow_html: true
+ end
it 'should parse at_callback ' do
tc "<p>WUF</p>\n", "{{$MEOW|meow}}\n"
tc "<p>meow</p>\n", "{{$UNKVAR|meow}}\n"
tc "<p>cat:</p>\n", "cat:{{$UNKVAR}}\n"
end