summaryrefslogtreecommitdiff
path: root/test/testutils/domtsasserts.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:18:10 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:18:10 +0000
commit83f3338663c4969eebefd8c2c43bd3fc43587fdd (patch)
treee48ba69628c5ba793533094e308c1fce9acb21aa /test/testutils/domtsasserts.c
parent4ade8ad1c7b23e6eeeee6681acbdb43fb10cab43 (diff)
downloadlibdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.gz
libdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.bz2
Merge branches/jmb/dom-alloc-purge back to trunk
svn path=/trunk/libdom/; revision=13316
Diffstat (limited to 'test/testutils/domtsasserts.c')
-rw-r--r--test/testutils/domtsasserts.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testutils/domtsasserts.c b/test/testutils/domtsasserts.c
index 03d0907..92e8222 100644
--- a/test/testutils/domtsasserts.c
+++ b/test/testutils/domtsasserts.c
@@ -90,15 +90,15 @@ bool is_equals_string(const char *expected, dom_string *actual,
dom_exception err;
bool ret;
- err = dom_string_create(myrealloc, NULL, (const uint8_t *)expected, strlen(expected),
+ err = dom_string_create((const uint8_t *)expected, strlen(expected),
&exp);
if (err != DOM_NO_ERR)
return false;
if (ignoreCase == true)
- ret = dom_string_icmp(exp, actual) == 0;
+ ret = dom_string_caseless_isequal(exp, actual);
else
- ret = dom_string_cmp(exp, actual) == 0;
+ ret = dom_string_isequal(exp, actual);
dom_string_unref(exp);
return ret;
@@ -109,9 +109,9 @@ bool is_equals_domstring(dom_string *expected, dom_string *actual,
bool ignoreCase)
{
if (ignoreCase == true)
- return dom_string_icmp(expected, actual) == 0;
+ return dom_string_caseless_isequal(expected, actual);
else
- return dom_string_cmp(expected, actual) == 0;
+ return dom_string_isequal(expected, actual);
}
/* The param actual should always contain dom_sting and expectd should