diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-29 14:45:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-29 14:45:05 +0000 |
commit | 9838246d69a3d48a8d0d286ecbfcd1faa199ae91 (patch) | |
tree | ae1fcbdbd02cfe4ed95702a517133ceb9e249f50 /test/parse2-auto.c | |
parent | 9a026637586cc90ce3418e945210c90313434306 (diff) | |
download | libcss-9838246d69a3d48a8d0d286ecbfcd1faa199ae91.tar.gz libcss-9838246d69a3d48a8d0d286ecbfcd1faa199ae91.tar.bz2 |
Provide hook for system colour name -> RGB conversion
svn path=/trunk/libcss/; revision=11522
Diffstat (limited to 'test/parse2-auto.c')
-rw-r--r-- | test/parse2-auto.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/test/parse2-auto.c b/test/parse2-auto.c index 877c0f5..cbf6730 100644 --- a/test/parse2-auto.c +++ b/test/parse2-auto.c @@ -183,6 +183,7 @@ void css__parse_expected(line_ctx *ctx, const char *data, size_t len) void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen) { + css_stylesheet_params params; css_stylesheet *sheet; css_error error; char *buf; @@ -195,9 +196,21 @@ void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen) } buflen = 2 * explen; - assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", "foo", NULL, - false, false, myrealloc, NULL, resolve_url, NULL, - NULL, NULL, &sheet) == CSS_OK); + params.level = CSS_LEVEL_21; + params.charset = "UTF-8"; + params.url = "foo"; + params.title = NULL; + 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; + + assert(css_stylesheet_create(¶ms, myrealloc, NULL, + &sheet) == CSS_OK); error = css_stylesheet_append_data(sheet, data, len); if (error != CSS_OK && error != CSS_NEEDDATA) { |