summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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"));