Unit test

Add a unit test for previous WikiWord fix.
This commit is contained in:
Jacques Distler 2007-12-21 08:53:45 -06:00
parent 6873fc8026
commit e74deb0cfb

View file

@ -75,6 +75,11 @@ class PageRendererTest < Test::Unit::TestCase
%{Smart Engine GUI<a href="../show/SmartEngineGUI">?</a></span></p>},
"#My Headline#\n\nthat SmartEngineGUI")
assert_markup_parsed_as(
%{<p>SVG <animateColor title="MathML"><span class="newWikiWord">} +
%{Math ML<a href="../show/MathML">?</a></span></animateColor></p>},
"SVG <animateColor title='MathML'>MathML</animateColor>")
assert_markup_parsed_as(
%{<div class="maruku-equation"><math class="maruku-mathml" display="block" } +
%{xmlns="http://www.w3.org/1998/Math/MathML"><mi>sin</mi><mo stretchy="false">} +