summaryrefslogtreecommitdiff
path: root/test/select-auto.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/select-auto.c')
-rw-r--r--test/select-auto.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/test/select-auto.c b/test/select-auto.c
index a0e63da..86c9f89 100644
--- a/test/select-auto.c
+++ b/test/select-auto.c
@@ -112,6 +112,8 @@ static css_error node_is_active(void *pw, void *node, bool *match);
static css_error node_is_focus(void *pw, void *node, bool *match);
static css_error node_is_lang(void *pw, void *node,
lwc_string *lang, bool *match);
+static css_error node_presentational_hint(void *pw, void *node,
+ uint32_t property, css_hint *hint);
static css_select_handler select_handler = {
node_name,
@@ -132,7 +134,8 @@ static css_select_handler select_handler = {
node_is_hover,
node_is_active,
node_is_focus,
- node_is_lang
+ node_is_lang,
+ node_presentational_hint
};
static void *myrealloc(void *data, size_t len, void *pw)
@@ -151,6 +154,9 @@ int main(int argc, char **argv)
return 1;
}
+ printf("css_hint: %lu\n", sizeof(css_hint));
+ printf("computed: %lu\n", sizeof(css_computed_style));
+
assert(css_initialise(argv[1], myrealloc, NULL) == CSS_OK);
memset(&ctx, 0, sizeof(ctx));
@@ -631,8 +637,7 @@ 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, NULL, computed, &select_handler, ctx) ==
- CSS_OK);
+ ctx->media, computed, &select_handler, ctx) == CSS_OK);
dump_computed_style(computed, buf, &buflen);
@@ -1052,3 +1057,14 @@ css_error node_is_lang(void *pw, void *n,
return CSS_OK;
}
+css_error node_presentational_hint(void *pw, void *node,
+ uint32_t property, css_hint *hint)
+{
+ UNUSED(pw);
+ UNUSED(node);
+ UNUSED(property);
+ UNUSED(hint);
+
+ return CSS_OK;
+}
+