diff options
author | Nathan Gass | 2012-08-07 12:49:00 +0000 |
---|---|---|
committer | Nathan Gass | 2012-08-07 12:49:00 +0000 |
commit | 07107a5374004f2f3b2e035b3b4dfb9293184e3b (patch) | |
tree | 397b331f3e8a143017b764fa48b27c0adbbd40b7 | |
parent | b28247c0dce9108a499d9c038d633a135503f76a (diff) | |
download | itools-07107a5374004f2f3b2e035b3b4dfb9293184e3b.tar.gz itools-07107a5374004f2f3b2e035b3b4dfb9293184e3b.tar.bz2 itools-07107a5374004f2f3b2e035b3b4dfb9293184e3b.zip |
test changed nenewlinetags in myhtml with inheritance as used by map
-rwxr-xr-x | tests/it_html.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/it_html.t b/tests/it_html.t index 2d99cf3..2838ae1 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -86,6 +86,12 @@ is( # Inheriting and extending it_html class myhtml extends it_html { + +function myhtml($p = array()) +{ + parent::it_html($p + array('nonewlinetags' => 'a,b,em,img,input,span,div')); +} + function myimg($args) { array_unshift($args, array('alt' => "ALT", 'bar' => "BAR")); @@ -104,6 +110,12 @@ is( ); is( + div(array('attr' => 'value'), 'content'), + '<div attr="value">content</div>', + "different nonewlinetags respected" +); + +is( it_html::sanitize(" \r \n " . ' <p><a href="http://www.flickr.com/people/swisspics%/">swisspics</a> posted < < ä & 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> |