summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-13 09:24:03 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-13 09:24:03 +0000
commitfc18fccd5ed2050a05cad53714f429a529253711 (patch)
tree659c5ee8e912fd70546cd7578551701346b7fb61 /test
parentc21a5d244101c695d59feaf5e333c194a33cc029 (diff)
downloadlibcss-fc18fccd5ed2050a05cad53714f429a529253711.tar.gz
Add structure versioning for client input
svn path=/trunk/libcss/; revision=12007
Diffstat (limited to 'test')
-rw-r--r--test/css21.c1
-rw-r--r--test/parse-auto.c1
-rw-r--r--test/parse2-auto.c1
-rw-r--r--test/select-auto.c3
4 files changed, 6 insertions, 0 deletions
diff --git a/test/css21.c b/test/css21.c
index ea655f7..ddc629c 100644
--- a/test/css21.c
+++ b/test/css21.c
@@ -48,6 +48,7 @@ int main(int argc, char **argv)
return 1;
}
+ params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
params.level = CSS_LEVEL_21;
params.charset = "UTF-8";
params.url = argv[1];
diff --git a/test/parse-auto.c b/test/parse-auto.c
index e9fd2e3..156c38d 100644
--- a/test/parse-auto.c
+++ b/test/parse-auto.c
@@ -371,6 +371,7 @@ void run_test(const uint8_t *data, size_t len, exp_entry *exp, size_t explen)
static int testnum;
bool failed;
+ params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
params.level = CSS_LEVEL_21;
params.charset = "UTF-8";
params.url = "foo";
diff --git a/test/parse2-auto.c b/test/parse2-auto.c
index 8999026..2ae7cae 100644
--- a/test/parse2-auto.c
+++ b/test/parse2-auto.c
@@ -196,6 +196,7 @@ void run_test(const uint8_t *data, size_t len, const char *exp, size_t explen)
}
buflen = 2 * explen;
+ params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
params.level = CSS_LEVEL_21;
params.charset = "UTF-8";
params.url = "foo";
diff --git a/test/select-auto.c b/test/select-auto.c
index 196bd5a..0ec57ae 100644
--- a/test/select-auto.c
+++ b/test/select-auto.c
@@ -154,6 +154,8 @@ static css_error compute_font_size(void *pw, const css_hint *parent,
css_hint *size);
static css_select_handler select_handler = {
+ CSS_SELECT_HANDLER_VERSION_1,
+
node_name,
node_classes,
node_id,
@@ -521,6 +523,7 @@ void css__parse_sheet(line_ctx *ctx, const char *data, size_t len)
css__parse_media_list(&p, &ignored, &media);
}
+ params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
params.level = CSS_LEVEL_21;
params.charset = "UTF-8";
params.url = "foo";