summaryrefslogtreecommitdiff
path: root/test/testutils/domtsasserts.c
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-05-31 09:07:42 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-11 04:27:11 +0530
commitf0a3c95cfc4a5595f930cd5dd14d6cbbf1f85312 (patch)
tree5f74ee26934ca2c29dcf9b61061c035ff5dce801 /test/testutils/domtsasserts.c
parentca30ba7de4c3b0b17a61e1f07032575a01f2cd25 (diff)
downloadlibdom-f0a3c95cfc4a5595f930cd5dd14d6cbbf1f85312.tar.gz
libdom-f0a3c95cfc4a5595f930cd5dd14d6cbbf1f85312.tar.bz2
tableSectionElement Rev.2 && tableCellElement Rev.4 && tableElement Rev.1 && tableRowElement Rev.1 && DOMTSHandler(Test Suite) Revised and implemented inefficient ways to produce correct .c's && other minor bg fixes in HTMLCollection... Tests expecting 2nd attribute of dom_html_collection_get_length to be of type int32_t aren't enabled yet. Will be done in a later commit.
Diffstat (limited to 'test/testutils/domtsasserts.c')
-rw-r--r--test/testutils/domtsasserts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testutils/domtsasserts.c b/test/testutils/domtsasserts.c
index 41cacf2..cbb8ed0 100644
--- a/test/testutils/domtsasserts.c
+++ b/test/testutils/domtsasserts.c
@@ -124,7 +124,10 @@ bool is_equals_list(list *expected, list *actual, bool ignoreCase)
comparator rcmp = NULL;
if (expected->type == INT)
+ {
cmp = int_comparator;
+ rcmp = int_comparator;
+ }
if (expected->type == STRING) {
if (actual->type == DOM_STRING) {
cmp = ignoreCase? str_icmp : str_cmp;
@@ -139,6 +142,7 @@ bool is_equals_list(list *expected, list *actual, bool ignoreCase)
}
assert(cmp != NULL);
+ assert(rcmp != NULL);
return list_contains_all(expected, actual, cmp) && list_contains_all(actual, expected, rcmp);
}