summaryrefslogtreecommitdiff
path: root/test/testutils
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2009-08-14 04:40:53 +0000
committerBo Yang <struggleyb.nku@gmail.com>2009-08-14 04:40:53 +0000
commit6ec0dc62d48de4d58cc6ea2993a3450390615c3b (patch)
treea837274b0ab3d3ba129868fb2352643a475e13be /test/testutils
parent0f44b5a8c07581232de4c676a00148c6b283c1c1 (diff)
downloadlibdom-6ec0dc62d48de4d58cc6ea2993a3450390615c3b.tar.gz
libdom-6ec0dc62d48de4d58cc6ea2993a3450390615c3b.tar.bz2
1. Find there are indeed two testcases for Events module, so I add support for them.
2. Change DOMTSHandler to deal with more exceptions and types 3. Add a new test assertion. svn path=/trunk/dom/; revision=9280
Diffstat (limited to 'test/testutils')
-rw-r--r--test/testutils/domtsasserts.c7
-rw-r--r--test/testutils/domtsasserts.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/test/testutils/domtsasserts.c b/test/testutils/domtsasserts.c
index affa881..731e19d 100644
--- a/test/testutils/domtsasserts.c
+++ b/test/testutils/domtsasserts.c
@@ -64,6 +64,13 @@ bool is_equals_int(int excepted, int actual, bool dummy)
return excepted == actual;
}
+bool is_equals_bool(bool excepted, bool actual, bool dummy)
+{
+ UNUSED(dummy);
+
+ return excepted == actual;
+}
+
bool is_equals_unsigned_long(unsigned long excepted, unsigned long actual, bool dummy)
{
UNUSED(dummy);
diff --git a/test/testutils/domtsasserts.h b/test/testutils/domtsasserts.h
index ee0fb72..a09603f 100644
--- a/test/testutils/domtsasserts.h
+++ b/test/testutils/domtsasserts.h
@@ -34,6 +34,7 @@ bool is_same_unsigned_long(unsigned long excepted, unsigned long actual);
bool is_equals_int(int excepted, int actual, bool dummy);
bool is_equals_unsigned_long(unsigned long excepted, unsigned long actual, bool dummy);
+bool is_equals_bool(bool excepted, bool actual, bool dummy);
bool is_equals_string(const char *excepted, dom_string *actual,
bool ignoreCase);
bool is_equals_domstring(dom_string *excepted, dom_string *actual, bool ignoreCase);