diff options
author | rsk1994 <rsk1coder99@gmail.com> | 2014-05-31 09:07:42 +0530 |
---|---|---|
committer | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-06-21 17:37:14 +0530 |
commit | 72287add78150033d00afd813bb6f5b0c6dee907 (patch) | |
tree | 2a08ed8f45d8cdc59b9cd390d67c1b8f1f02b070 /test/testutils | |
parent | e068e60c5683853d0315e0df8ed045358d97b225 (diff) | |
download | libdom-72287add78150033d00afd813bb6f5b0c6dee907.tar.gz libdom-72287add78150033d00afd813bb6f5b0c6dee907.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')
-rw-r--r-- | test/testutils/domtsasserts.c | 4 |
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); } |