'Instiki is a "Wiki Clone":http://www.c2.com/cgi/wiki?WikiWikiClones ("What is a wiki?":http://wiki.org/wiki.cgi?WhatIsWiki) that\'s so easy to setup',
assert_equal"<tt>hello</tt> that <span class=\"newWikiWord\">Smart Engine GUI<a href=\"../show/SmartEngineGUI\">?</a></span>\n\n",@revision.display_content
end
deftest_content_with_auto_links
assert_equal"<p><a href=\"http://www.loudthinking.com/\">http://www.loudthinking.com/</a> points to <a class=\"existingWikiWord\" href=\"../show/ThatWay\">That Way</a> from <a href=\"mailto:david@loudthinking.com\">david@loudthinking.com</a></p>",@revision_with_auto_links.display_content
end
deftest_content_with_aliased_links
assert_equal"<p>Would a <a class=\"existingWikiWord\" href=\"../show/SmartEngine\">clever motor</a> go by any other name?</p>",@revision_with_aliased_links.display_content
end
deftest_content_with_wikiword_in_em
assert_equal"<p><em>should we go <a class=\"existingWikiWord\" href=\"../show/ThatWay\">That Way</a> or <span class=\"newWikiWord\">This Way<a href=\"../show/ThisWay\">?</a></span> </em></p>",@revision_with_wiki_word_in_em.display_content
end
deftest_content_with_wikiword_in_tag
assert_equal"<p>That is some <em style=\"WikiWord\">Stylish Emphasis</em></p>",@revision_with_wikiword_in_tag.display_content
end
deftest_content_with_pre_blocks
assert_equal"A <code>class SmartEngine end</code> would not mark up <pre>CodeBlocks</pre>",@revision_with_pre_blocks.display_content
end
deftest_content_with_autolink_in_parentheses
assert_equal'<p>The <span class="caps">W3C</span> body (<a href="http://www.w3c.org">http://www.w3c.org</a>) sets web standards</p>',@revision_with_autolink_in_parentheses.display_content
end
deftest_content_with_link_in_parentheses
assert_equal'<p>Instiki is a <a href="http://www.c2.com/cgi/wiki?WikiWikiClones">Wiki Clone</a> (<a href="http://wiki.org/wiki.cgi?WhatIsWiki">What is a wiki?</a>) that’s so easy to setup</p>',@revision_with_link_in_parentheses.display_content
end
deftest_content_with_image_link
assert_equal'<p>This <img src="http://hobix.com/sample.jpg" alt="" /> is a Textile image link.</p>',@revision_with_image_link.display_content
end
deftest_content_with_nowiki_text
assert_equal'<p>Do not mark up [[this text]] or http://www.thislink.com.</p>',@revision_with_nowiki_text.display_content
assert_equal'<p>This is a WikiWord and a tricky name <span class="newWikiWord">Sperberg-McQueen<a href="../show/Sperberg-McQueen">?</a></span>.</p>',@revision_with_bracketted_wiki_word.display_content
end
deftest_content_for_export
assert_equal"<p><span class=\"newWikiWord\">His Way</span> would be <a class=\"existingWikiWord\" href=\"MyWay.html\">My Way</a> in kinda <a class=\"existingWikiWord\" href=\"ThatWay.html\">That Way</a> in <span class=\"newWikiWord\">His Way</span> though <a class=\"existingWikiWord\" href=\"MyWay.html\">My Way</a> OverThere—see <a class=\"existingWikiWord\" href=\"SmartEngine.html\">Smart Engine</a> in that <span class=\"newWikiWord\">Smart Engine <span class=\"caps\">GUI</span></span></p>",@revision.display_content_for_export