From d32e3c3c06d0f7cd0fb81545dd168364cefad68f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 1 Dec 2013 19:13:12 +0000 Subject: Update for new selection API. --- test/select-auto.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/select-auto.c b/test/select-auto.c index 4b664ab..9c1a52b 100644 --- a/test/select-auto.c +++ b/test/select-auto.c @@ -708,6 +708,7 @@ void run_test(line_ctx *ctx, const char *exp, size_t explen) char *buf; size_t buflen; static int testnum; + css_bloom node_bloom[CSS_BLOOM_SIZE]; UNUSED(exp); @@ -727,7 +728,12 @@ void run_test(line_ctx *ctx, const char *exp, size_t explen) testnum++; - assert(css_select_style(select, ctx->target, ctx->media, NULL, + /* Not testing bloom functionality here, just set all bits */ + for (i = 0; i < CSS_BLOOM_SIZE; i++) { + node_bloom[i] = ~0; + } + + assert(css_select_style(select, ctx->target, node_bloom, ctx->media, NULL, &select_handler, ctx, &results) == CSS_OK); assert(results->styles[ctx->pseudo_element] != NULL); -- cgit v1.2.3