summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2007-02-12 15:21:38 +0000
committerChristian Schneider2007-02-12 15:21:38 +0000
commit3c0a27cb291e5237d7b79d20b3449e266729845a (patch)
tree46d7ef2720b71ab5890884256d44174aeb93c9f8
parente923bc4ab388d00ec757987003e39918756a7c59 (diff)
downloaditools-3c0a27cb291e5237d7b79d20b3449e266729845a.tar.gz
itools-3c0a27cb291e5237d7b79d20b3449e266729845a.tar.bz2
itools-3c0a27cb291e5237d7b79d20b3449e266729845a.zip
Added test for it_html::sanitize()
-rwxr-xr-xtests/html.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/html.t b/tests/html.t
index 3bc603b..85f7818 100755
--- a/tests/html.t
+++ b/tests/html.t
@@ -80,5 +80,14 @@ is(
"it_html inheritance"
);
+is(
+ it_html::sanitize(' <p><a href="http://www.flickr.com/people/swisspics/">swisspics</a> posted < &lt; &auml; &amp; yesterday <b>a <i>photo</i></b> <b><i>tag missmatch</b></i>:</p><br><br />
+
+<p><a href="javascript:window.close()" title="Wolken"><img src="http://farm1.static.flickr.com/177/377214376_bcba167a7d_m.jpg" width="240" height="180" alt="Wolken" style="border: 1px solid #ddd;" /></a></p>
+'),
+ ' <a href="http://www.flickr.com/people/swisspics/">swisspics</a> posted &lt; &lt; ä &amp; yesterday a <i>photo</i> <i>tag missmatch</i>:<br /><br /> <p><img src="http://farm1.static.flickr.com/177/377214376_bcba167a7d_m.jpg" /></p> ',
+ 'it_html::sanitize tag soup'
+);
+
?>