From ec53465c830b136ff4012c5958b57faee1956c37 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 19 Jan 2009 11:06:52 +0000 Subject: Purge stylesheet dumping code from the library. Create a common header for the test harnesses to use, instead. Fix z-index dumping while we're at it. svn path=/trunk/libcss/; revision=6146 --- test/css21.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/css21.c') diff --git a/test/css21.c b/test/css21.c index 267beec..3da2bfb 100644 --- a/test/css21.c +++ b/test/css21.c @@ -4,6 +4,7 @@ #include #include "stylesheet.h" +#include "dump.h" #include "testutils.h" #define ITERATIONS (1) @@ -80,7 +81,13 @@ int main(int argc, char **argv) #endif #if DUMP_CSS - css_stylesheet_dump(sheet, stdout); + char *out; + size_t outlen = origlen * 2; + out = malloc(outlen); + assert(out != NULL); + dump_sheet(sheet, out, &outlen); + fwrite(out, origlen * 2 - outlen, 1, stdout); + free(out); #endif css_stylesheet_destroy(sheet); -- cgit v1.2.3