summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/DOMTSHandler.pm3
-rw-r--r--test/testutils/domtsasserts.c7
-rw-r--r--test/testutils/domtsasserts.h1
3 files changed, 10 insertions, 1 deletions
diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm
index 55f30bc..09b657e 100644
--- a/test/DOMTSHandler.pm
+++ b/test/DOMTSHandler.pm
@@ -31,7 +31,7 @@ our %special_type = (
# Some of the type are not defined now!
boolean => "bool ",
int => "int32_t ",
- "unsigned long" => "uint32_t ",
+ "unsigned long" => "dom_ulong ",
DOMString => "dom_string *",
List => "list *",
Collection => "list *",
@@ -101,6 +101,7 @@ our %no_unref = (
"boolean" => 1,
"int" => 1,
"unsigned int" => 1,
+ "unsigned long" => 1,
"List" => 1,
"Collection" => 1,
);
diff --git a/test/testutils/domtsasserts.c b/test/testutils/domtsasserts.c
index cbb8ed0..85ee969 100644
--- a/test/testutils/domtsasserts.c
+++ b/test/testutils/domtsasserts.c
@@ -76,6 +76,13 @@ bool is_equals_unsigned_int32_t(uint32_t expected, uint32_t actual, bool dummy)
return expected == actual;
}
+bool is_equals_unsigned_long(dom_ulong expected, dom_ulong actual, bool dummy)
+{
+ UNUSED(dummy);
+
+ return expected == actual;
+}
+
/**
* Test whether two string are equal
*
diff --git a/test/testutils/domtsasserts.h b/test/testutils/domtsasserts.h
index 1a292f7..9091c01 100644
--- a/test/testutils/domtsasserts.h
+++ b/test/testutils/domtsasserts.h
@@ -35,6 +35,7 @@ bool is_same_unsigned_int32_t(uint32_t excepted, uint32_t actual);
bool is_equals_int(int excepted, int actual, bool dummy);
bool is_equals_unsigned_int32_t(uint32_t excepted, uint32_t actual, bool dummy);
+bool is_equals_unsigned_long(dom_ulong excepted, dom_ulong 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);