From baf8100d9bc88fc579035d603363d8a3c78672ae Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 28 Nov 2008 17:17:45 +0000 Subject: Extract test code from css.c into a separate source file. Modify test driver to take stylesheet filename on the command line. Makefile to build a library from the css parser sources and link the test driver against it. svn path=/trunk/netsurf/; revision=5812 --- css/css.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'css/css.c') diff --git a/css/css.c b/css/css.c index aeeec4084..701000da0 100644 --- a/css/css.c +++ b/css/css.c @@ -3315,21 +3315,4 @@ struct css_border *css_eyecatching_border(struct css_border *test1, return test2; } -#ifdef DEBUG -int main() -{ - const char data[] = "h1 { blah: foo; display: block; }" - "h1.c1 h2#id1 + h3, h4 h5.c2#id2 { size: 100mm; color: red }" - "p { background-color: #123; clear: left; color: #ff0000; display: block;" - "float: left; font-size: 150%; height: blah; line-height: 100;" - "text-align: left right; width: 90%;}"; - struct content c; - css_create(&c); - css_process_data(&c, data, 24); - css_process_data(&c, data + 24, sizeof(data) - 25); - css_convert(&c, 100, 100); - return 0; -} - -#endif -- cgit v1.2.3