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
commit5683fc5533fb5c6e796af00a9f7d69e4fa2adddc (patch)
treea837274b0ab3d3ba129868fb2352643a475e13be /test/testutils
parent638912a6992ebf3f40f23ab810191e553a2f3d1b (diff)
downloadlibdom-5683fc5533fb5c6e796af00a9f7d69e4fa2adddc.tar.gz
libdom-5683fc5533fb5c6e796af00a9f7d69e4fa2adddc.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);