diff options
Diffstat (limited to 'tests/it_html.t')
-rwxr-xr-x | tests/it_html.t | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/it_html.t b/tests/it_html.t index 4c06d9d..4f4da24 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -52,40 +52,40 @@ is( ); is( - div('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n"), + div(array('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n")), "<div arg=\"val: , , , , , , \x09, \">\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n</div>\n", "blank unprintable characters and illegal utf8 in attributes but not in normal text" ); is( - div("arg\x03\x0e\x0f\xc2\x80\xc2\x9fendarg" => "value", "content"), + div(array("arg\x03\x0e\x0f\xc2\x80\xc2\x9fendarg" => "value", "content")), "<div arg\x03\x0e\x0f\xc2\x80\xc2\x9fendarg=\"value\">content</div>\n", "don't blank unprintable characters and illegal utf8 in attribute names" ); is( - div('arg' => "abc äüö éá© œàè îôÇ xyz", "abc äüö éá© œàè îôÇ xyz"), + div(array('arg' => "abc äüö éá© œàè îôÇ xyz", "abc äüö éá© œàè îôÇ xyz")), "<div arg=\"abc äüö éá© œàè îôÇ xyz\">abc äüö éá© œàè îôÇ xyz</div>\n", - "leave legal utf8 intact", + "leave legal utf8 intact" ); unset($GLOBALS['debug_utf8check']); is( - div('arg' => "value \xc2", "content"), + div(array('arg' => "value \xc2", "content")), "<div arg=\"value \xc2\">content</div>\n", - "handle single \\xc2 at end of attribute value", + "handle single \\xc2 at end of attribute value" ); is( - div("arg\x00end" => "value \x00 end", "content \x00 content end"), + div(array("arg\x00end" => "value \x00 end", "content \x00 content end")), "<div arg\x00end=\"value end\">content \x00 content end</div>\n", - "handle 0-bytes", + "handle 0-bytes" ); is( - div('arg' => "& \" < > \n '", "& \" < > \n '"), + div(array('arg' => "& \" < > \n '", "& \" < > \n '")), "<div arg=\"& " < > '\">& \" < > \n '</div>\n", - "use html entities in attributes but not in normal text", + "use html entities in attributes but not in normal text" ); # Test different html types @@ -93,7 +93,7 @@ foreach (array('html5' => "<br flag>", 'html' => "<br flag>", 'xhtml' => "<br fl { unset($GLOBALS['it_html']); new it_html(array('htmltype' => $type)); - is (trim(br('flag' => true)), $value, "Check empty tag and attribute for $type"); + is (trim(br(array('flag' => true))), $value, "Check empty tag and attribute for $type"); } # XML generation @@ -180,7 +180,7 @@ is( is( it_html::sanitize('<div></div>'), '', - 'empty tags removal', + 'empty tags removal' ); is( |