From 5683fc5533fb5c6e796af00a9f7d69e4fa2adddc Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Fri, 14 Aug 2009 04:40:53 +0000 Subject: 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 --- test/testutils/domtsasserts.c | 7 +++++++ test/testutils/domtsasserts.h | 1 + 2 files changed, 8 insertions(+) (limited to 'test/testutils') 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); -- cgit v1.2.3