diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-28 18:17:59 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-28 18:17:59 +0000 |
commit | 4895955ceaf264c5f17b10c4009e1ab1afcc55ee (patch) | |
tree | 4f8553a9007b263e0b44afd0b9d0cbe8b5cf7b88 /t/htmlize.t | |
parent | e3a6ff004474cacb3e7a69a37696a65ebf1e2fcd (diff) | |
download | ikiwiki-4895955ceaf264c5f17b10c4009e1ab1afcc55ee.tar ikiwiki-4895955ceaf264c5f17b10c4009e1ab1afcc55ee.tar.gz |
* Change htmlize, format, and sanitize hooks to use named parameters.
Diffstat (limited to 't/htmlize.t')
-rwxr-xr-x | t/htmlize.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/htmlize.t b/t/htmlize.t index 070fbf958..fc9ca5b84 100755 --- a/t/htmlize.t +++ b/t/htmlize.t @@ -13,10 +13,10 @@ $IkiWiki::config{srcdir}=$IkiWiki::config{destdir}="/dev/null"; IkiWiki::loadplugins(); IkiWiki::checkconfig(); -is(IkiWiki::htmlize("mdwn", "foo\n\nbar\n"), "<p>foo</p>\n\n<p>bar</p>\n", +is(IkiWiki::htmlize("foo", "mdwn", "foo\n\nbar\n"), "<p>foo</p>\n\n<p>bar</p>\n", "basic"); -is(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test1.mdwn")), +is(IkiWiki::htmlize("foo", "mdwn", IkiWiki::readfile("t/test1.mdwn")), Encode::decode_utf8(qq{<p><img src="../images/o.jpg" alt="o" title="ó" />\nóóóóó</p>\n}), "utf8; bug #373203"); -ok(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test2.mdwn")), +ok(IkiWiki::htmlize("foo", "mdwn", IkiWiki::readfile("t/test2.mdwn")), "this file crashes markdown if it's fed in as decoded utf-8"); |