summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/css21.c6
-rw-r--r--test/parse-auto.c6
-rw-r--r--test/parse2-auto.c2
-rw-r--r--test/select-auto.c7
4 files changed, 11 insertions, 10 deletions
diff --git a/test/css21.c b/test/css21.c
index 704ed9f..d3bf96d 100644
--- a/test/css21.c
+++ b/test/css21.c
@@ -47,7 +47,7 @@ int main(int argc, char **argv)
assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", argv[2],
NULL, CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false,
- ctx, myrealloc, NULL, &sheet) == CSS_OK);
+ false, ctx, myrealloc, NULL, &sheet) == CSS_OK);
fp = fopen(argv[2], "rb");
if (fp == NULL) {
@@ -103,8 +103,8 @@ int main(int argc, char **argv)
assert(css_stylesheet_create(CSS_LEVEL_21,
"UTF-8", buf, NULL, CSS_ORIGIN_AUTHOR,
- media, false, ctx, myrealloc, NULL,
- &import) == CSS_OK);
+ media, false, false, ctx, myrealloc,
+ 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 0bab4c2..ebbc5e7 100644
--- a/test/parse-auto.c
+++ b/test/parse-auto.c
@@ -312,7 +312,7 @@ void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen)
lwc_context_ref(ctx);
assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL,
- CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false, ctx,
+ CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false, false, ctx,
myrealloc, NULL, &sheet) == CSS_OK);
error = css_stylesheet_append_data(sheet, data, len);
@@ -342,8 +342,8 @@ 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, CSS_ORIGIN_AUTHOR,
- media, false, ctx, myrealloc, NULL, &import) ==
- CSS_OK);
+ media, false, false, ctx, myrealloc, 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 c6426be..ace1d6c 100644
--- a/test/parse2-auto.c
+++ b/test/parse2-auto.c
@@ -176,7 +176,7 @@ void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen)
lwc_context_ref(ctx);
assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL,
- CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false, ctx,
+ CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, false, false, ctx,
myrealloc, NULL, &sheet) == CSS_OK);
error = css_stylesheet_append_data(sheet, data, len);
diff --git a/test/select-auto.c b/test/select-auto.c
index c42c82e..3f82433 100644
--- a/test/select-auto.c
+++ b/test/select-auto.c
@@ -450,8 +450,8 @@ 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",
- origin, media, false, ctx->dict, myrealloc, NULL,
- &sheet) == CSS_OK);
+ origin, media, false, false, ctx->dict,
+ myrealloc, NULL, &sheet) == CSS_OK);
/* Extend array of sheets and append new sheet to it */
temp = realloc(ctx->sheets,
@@ -637,7 +637,8 @@ void run_test(line_ctx *ctx, const char *exp, size_t explen)
testnum++;
assert(css_select_style(select, ctx->target, ctx->pseudo_element,
- ctx->media, computed, &select_handler, ctx) == CSS_OK);
+ ctx->media, NULL, computed, &select_handler, ctx) ==
+ CSS_OK);
dump_computed_style(computed, buf, &buflen);