From b28247c0dce9108a499d9c038d633a135503f76a Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Tue, 7 Aug 2012 11:43:21 +0000 Subject: some tests for proper _cleanup with it_html tag functions --- tests/it_html.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/it_html.t b/tests/it_html.t index 7e43faa..2d99cf3 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -49,6 +49,18 @@ is( "select tag without multiselect" ); +is( + div('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n"), + "
\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n
\n", + "blank unprintable characters and illegal utf8 in attributes but not in normal text" +); + +is( + div('arg' => "& \" < > \n '", "& \" < > \n '"), + "
& \" < > \n '
\n", + "use html entities in attributes but not in normal text", +); + # XML generation unset($GLOBALS['it_html']); new it_html(array('htmltype' => "xhtml", 'tags' => "xmltest")); -- cgit v1.2.3