summaryrefslogtreecommitdiff
path: root/test/parse.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-03-27 16:10:57 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-03-27 16:10:57 +0000
commit80cfe125983eb126a9f8afd974196cf0bf347877 (patch)
treee6fe993a7ad2fc6859509b661d2d4f721e846e60 /test/parse.c
parent46e3a946d7b2f7d68f3753a37c6f68a732a36f01 (diff)
downloadlibcss-80cfe125983eb126a9f8afd974196cf0bf347877.tar.gz
libcss-80cfe125983eb126a9f8afd974196cf0bf347877.tar.bz2
Fix libcss to use new libwapcaplet behaviour.
TODO: update the tests to include a refcounting proof svn path=/trunk/libcss/; revision=10162
Diffstat (limited to 'test/parse.c')
-rw-r--r--test/parse.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/parse.c b/test/parse.c
index ec17001..3618f34 100644
--- a/test/parse.c
+++ b/test/parse.c
@@ -82,7 +82,6 @@ int main(int argc, char **argv)
#define CHUNK_SIZE (4096)
uint8_t buf[CHUNK_SIZE];
css_error error;
- lwc_context *ctx;
int i;
if (argc != 3) {
@@ -92,11 +91,10 @@ int main(int argc, char **argv)
/* Initialise library */
assert(css_initialise(argv[1], myrealloc, NULL) == CSS_OK);
- assert(lwc_create_context(myrealloc, NULL, &ctx) == lwc_error_ok);
- lwc_context_ref(ctx);
+ assert(lwc_initialise(myrealloc, NULL, 0) == lwc_error_ok);
for (i = 0; i < ITERATIONS; i++) {
- assert(css_parser_create("UTF-8", CSS_CHARSET_DICTATED, ctx,
+ assert(css_parser_create("UTF-8", CSS_CHARSET_DICTATED,
myrealloc, NULL, &parser) == CSS_OK);
params.event_handler.handler = event_handler;
@@ -146,8 +144,6 @@ int main(int argc, char **argv)
printf("PASS\n");
- lwc_context_unref(ctx);
-
return 0;
}