From da22dbf81c7310a5c6195c26922d07652c88392f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 1 Aug 2008 01:15:31 +0000 Subject: Fix handling of empty strings. Parse errors in blocks are ignored -- it'll be up to the client to deal with this. Fix processing of malformed decl-list entries (e.g. foo: bar; !important;) Fix test driver to calculate remaining length correctly. svn path=/trunk/libcss/; revision=4849 --- test/parse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/parse.c') diff --git a/test/parse.c b/test/parse.c index 567c8c4..730ba44 100644 --- a/test/parse.c +++ b/test/parse.c @@ -91,6 +91,8 @@ int main(int argc, char **argv) error = css_parser_parse_chunk(parser, buf, CHUNK_SIZE); assert(error == CSS_OK || error == CSS_NEEDDATA); + + len -= CHUNK_SIZE; } if (len > 0) { -- cgit v1.2.3