diff options
author | Christian Schneider | 2014-02-21 13:54:54 +0100 |
---|---|---|
committer | Christian Schneider | 2014-02-21 13:54:54 +0100 |
commit | 698066659774331dadd9cb0c1dab0aba795588b0 (patch) | |
tree | 51a664ee85b6b966f193b4ba5afc5ec745c43909 /tests | |
parent | 723d9d7382e37cac06d9c1ebc00ded066ee0810b (diff) | |
download | itools-698066659774331dadd9cb0c1dab0aba795588b0.tar.gz itools-698066659774331dadd9cb0c1dab0aba795588b0.tar.bz2 itools-698066659774331dadd9cb0c1dab0aba795588b0.zip |
Added support for htmltype 'html5' to it_html
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it_html.t | 8 |
1 files changed, 8 insertions, 0 deletions
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' => "<br flag>", 'html' => "<br flag>", 'xhtml' => "<br flag=\"flag\" />", 'xhtml-mobile' => "<br flag=\"flag\" />") 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")); |