summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-05 14:20:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-05 14:20:58 +0000
commit01d8e176628db2dc5a2a192ac7b097bd1998c8eb (patch)
treeaaafdf5d24f1bf0299dc171862c1a41e8f2f6914 /test
parent478018da914c247d0d49f64aba9eb3eb9a552199 (diff)
downloadlibcss-01d8e176628db2dc5a2a192ac7b097bd1998c8eb.tar.gz
libcss-01d8e176628db2dc5a2a192ac7b097bd1998c8eb.tar.bz2
Provide notification hook for imported stylesheets, to enable clients to parallelise their processing
svn path=/trunk/libcss/; revision=10999
Diffstat (limited to 'test')
-rw-r--r--test/css21.c5
-rw-r--r--test/parse-auto.c4
-rw-r--r--test/parse2-auto.c2
-rw-r--r--test/select-auto.c2
4 files changed, 7 insertions, 6 deletions
diff --git a/test/css21.c b/test/css21.c
index 5d6bb04..2ce4ebc 100644
--- a/test/css21.c
+++ b/test/css21.c
@@ -51,7 +51,8 @@ int main(int argc, char **argv)
assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", argv[1],
NULL, false, false, myrealloc, NULL,
- resolve_url, NULL, &sheet) == CSS_OK);
+ resolve_url, NULL, NULL, NULL,
+ &sheet) == CSS_OK);
fp = fopen(argv[1], "rb");
if (fp == NULL) {
@@ -108,7 +109,7 @@ int main(int argc, char **argv)
assert(css_stylesheet_create(CSS_LEVEL_21,
"UTF-8", buf, NULL, false, false,
myrealloc, NULL, resolve_url, NULL,
- &import) == CSS_OK);
+ NULL, NULL, &import) == CSS_OK);
assert(css_stylesheet_data_done(import) ==
CSS_OK);
diff --git a/test/parse-auto.c b/test/parse-auto.c
index e050a08..ffff3f2 100644
--- a/test/parse-auto.c
+++ b/test/parse-auto.c
@@ -327,7 +327,7 @@ void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen)
assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL,
false, false, myrealloc, NULL, resolve_url, NULL,
- &sheet) == CSS_OK);
+ NULL, NULL, &sheet) == CSS_OK);
error = css_stylesheet_append_data(sheet, data, len);
if (error != CSS_OK && error != CSS_NEEDDATA) {
@@ -357,7 +357,7 @@ void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen)
assert(css_stylesheet_create(CSS_LEVEL_21,
"UTF-8", buf, NULL, false, false,
myrealloc, NULL, resolve_url, NULL,
- &import) == CSS_OK);
+ NULL, NULL, &import) == CSS_OK);
assert(css_stylesheet_register_import(sheet,
import) == CSS_OK);
diff --git a/test/parse2-auto.c b/test/parse2-auto.c
index f649fd4..83bab14 100644
--- a/test/parse2-auto.c
+++ b/test/parse2-auto.c
@@ -191,7 +191,7 @@ void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen)
assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL,
false, false, myrealloc, NULL, resolve_url, NULL,
- &sheet) == CSS_OK);
+ NULL, NULL, &sheet) == CSS_OK);
error = css_stylesheet_append_data(sheet, data, len);
if (error != CSS_OK && error != CSS_NEEDDATA) {
diff --git a/test/select-auto.c b/test/select-auto.c
index 74f4a03..8642cfd 100644
--- a/test/select-auto.c
+++ b/test/select-auto.c
@@ -489,7 +489,7 @@ void parse_sheet(line_ctx *ctx, const char *data, size_t len)
/** \todo How are we going to handle @import? */
assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", "foo",
false, false, myrealloc, NULL,
- resolve_url, NULL, &sheet) == CSS_OK);
+ resolve_url, NULL, NULL, NULL, &sheet) == CSS_OK);
/* Extend array of sheets and append new sheet to it */
temp = realloc(ctx->sheets,