summaryrefslogtreecommitdiff
path: root/tests/it_html.t
diff options
context:
space:
mode:
authorChristian Schneider2007-08-30 13:43:13 +0000
committerChristian Schneider2007-08-30 13:43:13 +0000
commit7722bd06a2797d06529d21fc939cd84ae98361fe (patch)
tree511292c13fa0d47e260f6e0ba2dd2dc794002e25 /tests/it_html.t
parent52ead6bc0391e0c85cdba31e83cd38e661a514c6 (diff)
downloaditools-7722bd06a2797d06529d21fc939cd84ae98361fe.tar.gz
itools-7722bd06a2797d06529d21fc939cd84ae98361fe.tar.bz2
itools-7722bd06a2797d06529d21fc939cd84ae98361fe.zip
Diffstat (limited to 'tests/it_html.t')
-rwxr-xr-xtests/it_html.t18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/it_html.t b/tests/it_html.t
index 965e4a1..cd934be 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -6,10 +6,10 @@
require 'searchlib/search_test.class';
# Traditional html generation
-new it_html('htmltype' => "html");
+new it_html(array('htmltype' => "html"));
is(
- a('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => "", "bar"),
+ a(array('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => ""), "bar"),
'<a href="&amp;foo" true empty="">bar</a>',
"tag with attributes"
);
@@ -21,7 +21,7 @@ is(
);
is(
- img('src' => "foo.png"),
+ img(array('src' => "foo.png")),
'<img src="foo.png">',
"empty link tag"
);
@@ -40,7 +40,7 @@ is(
# XML generation
unset($GLOBALS['it_html']);
-new it_html('htmltype' => "xhtml", 'tags' => "xmltest");
+new it_html(array('htmltype' => "xhtml", 'tags' => "xmltest"));
is(
xmltest(),
@@ -55,7 +55,7 @@ is(
);
is(
- xmltest('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => ""),
+ xmltest(array('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => "")),
'<xmltest href="&amp;foo" true="true" empty="" />' . "\n",
"xmltest tag with attributes"
);
@@ -65,17 +65,17 @@ class myhtml extends it_html
{
function myimg($args)
{
- array_unshift($args, 'alt' => "ALT", 'bar' => "BAR");
+ array_unshift($args, array('alt' => "ALT", 'bar' => "BAR"));
return parent::img($args);
}
}
unset($GLOBALS['it_html']);
-new myhtml('htmltype' => "html");
+new myhtml(array('htmltype' => "html"));
is(
- myimg('src' => "foo.gif", 'alt' => "foo"),
+ myimg(array('src' => "foo.gif", 'alt' => "foo")),
'<img alt="foo" bar="BAR" src="foo.gif">',
"it_html inheritance"
);
@@ -90,7 +90,7 @@ is(
);
is(
- U("/foo.html", 'bar' => array('gna' => 42, 'qux' => array('quux' => "<Zürich>", 'gnöp' => "fasel"))),
+ U("/foo.html", array('bar' => array('gna' => 42, 'qux' => array('quux' => "<Zürich>", 'gnöp' => "fasel")))),
'/foo.html?bar[gna]=42&bar[qux][quux]=%3CZ%FCrich%3E&bar[qux][gn%F6p]=fasel',
'U() with nested arrays'
);