summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Schneider2014-02-21 13:54:54 +0100
committerChristian Schneider2014-02-21 13:54:54 +0100
commit698066659774331dadd9cb0c1dab0aba795588b0 (patch)
tree51a664ee85b6b966f193b4ba5afc5ec745c43909 /tests
parent723d9d7382e37cac06d9c1ebc00ded066ee0810b (diff)
downloaditools-698066659774331dadd9cb0c1dab0aba795588b0.tar.gz
itools-698066659774331dadd9cb0c1dab0aba795588b0.tar.bz2
itools-698066659774331dadd9cb0c1dab0aba795588b0.zip
Added support for htmltype 'html5' to it_html
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_html.t8
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"));