summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-01 19:13:12 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2013-12-01 19:13:12 (GMT)
commitd32e3c3c06d0f7cd0fb81545dd168364cefad68f (patch)
treec92f2d7d35fe7507ab59c2641e8c9e9a1b4efbbc /test
parentcea0f412145c239a7583c10554c2d88964e94fd7 (diff)
downloadlibcss-d32e3c3c06d0f7cd0fb81545dd168364cefad68f.tar.gz
libcss-d32e3c3c06d0f7cd0fb81545dd168364cefad68f.tar.bz2
Update for new selection API.
Diffstat (limited to 'test')
-rw-r--r--test/select-auto.c8
1 files changed, 7 insertions, 1 deletions
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);