From 9838246d69a3d48a8d0d286ecbfcd1faa199ae91 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 29 Jan 2011 14:45:05 +0000 Subject: Provide hook for system colour name -> RGB conversion svn path=/trunk/libcss/; revision=11522 --- test/select-auto.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'test/select-auto.c') diff --git a/test/select-auto.c b/test/select-auto.c index c81d097..12fdb5f 100644 --- a/test/select-auto.c +++ b/test/select-auto.c @@ -457,6 +457,7 @@ void css__parse_tree_data(line_ctx *ctx, const char *data, size_t len) void css__parse_sheet(line_ctx *ctx, const char *data, size_t len) { + css_stylesheet_params params; const char *p; const char *end = data + len; css_origin origin = CSS_ORIGIN_AUTHOR; @@ -491,10 +492,22 @@ void css__parse_sheet(line_ctx *ctx, const char *data, size_t len) css__parse_media_list(&p, &ignored, &media); } + params.level = CSS_LEVEL_21; + params.charset = "UTF-8"; + params.url = "foo"; + params.title = "foo"; + params.allow_quirks = false; + params.inline_style = false; + params.resolve = resolve_url; + params.resolve_pw = NULL; + params.import = NULL; + params.import_pw = NULL; + params.color = NULL; + params.color_pw = NULL; + /** \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, NULL, NULL, &sheet) == CSS_OK); + assert(css_stylesheet_create(¶ms, myrealloc, NULL, + &sheet) == CSS_OK); /* Extend array of sheets and append new sheet to it */ temp = realloc(ctx->sheets, -- cgit v1.2.3