From 07107a5374004f2f3b2e035b3b4dfb9293184e3b Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Tue, 7 Aug 2012 12:49:00 +0000 Subject: test changed nenewlinetags in myhtml with inheritance as used by map --- tests/it_html.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/it_html.t') 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")); @@ -103,6 +109,12 @@ is( "it_html inheritance" ); +is( + div(array('attr' => 'value'), 'content'), + '
content
', + "different nonewlinetags respected" +); + is( it_html::sanitize(" \r \n " . '

swisspics posted < < ä & yesterday a photo tag missmatch:



-- cgit v1.2.3