summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-10-19 21:46:54 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-10-19 21:46:54 +0000
commit3b433639d83e6bf4ddb074f989c17502bc862fc0 (patch)
treeb8b0aa295f2521413a52ddca79d19c2bf9d87f00 /test
parent0aa91129557556fcc8dbb92c699c641c161e777c (diff)
downloadlibcss-3b433639d83e6bf4ddb074f989c17502bc862fc0.tar.gz
libcss-3b433639d83e6bf4ddb074f989c17502bc862fc0.tar.bz2
Provide an internal mechanism for dumping stylesheets to a file handle.
Make the css21 test driver call this so we can see if it's working. svn path=/trunk/libcss/; revision=5602
Diffstat (limited to 'test')
-rw-r--r--test/css21.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/css21.c b/test/css21.c
index b4e36b6..56e6a90 100644
--- a/test/css21.c
+++ b/test/css21.c
@@ -2,7 +2,7 @@
#include <stdio.h>
#include <libcss/libcss.h>
-#include <libcss/stylesheet.h>
+#include "stylesheet.h"
#include "testutils.h"
@@ -67,6 +67,8 @@ int main(int argc, char **argv)
assert(css_stylesheet_data_done(sheet) == CSS_OK);
+ css_stylesheet_dump(sheet, stdout);
+
css_stylesheet_destroy(sheet);
assert(css_finalise(myrealloc, NULL) == CSS_OK);