diff options
Diffstat (limited to 'tests/it_html.t')
-rwxr-xr-x | tests/it_html.t | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/it_html.t b/tests/it_html.t index 31eda14..86afbf8 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -39,15 +39,15 @@ is( ); is( - it::replace('\n+\s*' => "", select('name' => "gna", 'multiple' => true, '1:foo,2:bar', '1,2')), + it::replace(array('\n+\s*' => ""), select(array('name' => "gna", 'multiple' => true), '1:foo,2:bar', '1,2')), '<select name="gna" multiple><option value="1" selected>foo</option><option value="2" selected>bar</option></select>', - "select tag with multiselect", + "select tag with multiselect" ); is( - it::replace('\n+\s*' => "", select('name' => "gna", array("1" => "foo", "2" => 'bar', '1,2' => "qux"), '1,2')), + it::replace(array('\n+\s*' => ""), select(array('name' => "gna"), array("1" => "foo", "2" => 'bar', '1,2' => "qux"), '1,2')), '<select name="gna"><option value="1">foo</option><option value="2">bar</option><option value="1,2" selected>qux</option></select>', - "link tag without multiselect", + "link tag without multiselect" ); # XML generation @@ -101,18 +101,18 @@ is( 'it_html::sanitize tag soup' ); -it_html::configure('charset' => "utf-8"); +it_html::configure(array('charset' => "utf-8")); is( it_html::sanitize('qüx'), "q\xc3\xbcx", - 'it_html::sanitize with utf-8', + 'it_html::sanitize with utf-8' ); -it_html::configure('charset' => "iso-8859-1"); +it_html::configure(array('charset' => "iso-8859-1")); is( it_html::sanitize('qüx'), "q\xfcx", - 'it_html::sanitize with latin1', + 'it_html::sanitize with latin1' ); is( |