From 698066659774331dadd9cb0c1dab0aba795588b0 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 21 Feb 2014 13:54:54 +0100 Subject: Added support for htmltype 'html5' to it_html --- tests/it_html.t | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/it_html.t b/tests/it_html.t index b50b3c9..4c06d9d 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -88,6 +88,14 @@ is( "use html entities in attributes but not in normal text", ); +# Test different html types +foreach (array('html5' => "
", 'html' => "
", 'xhtml' => "
", 'xhtml-mobile' => "
") as $type => $value) +{ + unset($GLOBALS['it_html']); + new it_html(array('htmltype' => $type)); + is (trim(br('flag' => true)), $value, "Check empty tag and attribute for $type"); +} + # XML generation unset($GLOBALS['it_html']); new it_html(array('htmltype' => "xhtml", 'tags' => "xmltest")); -- cgit v1.2.3