summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Replace deprecated INCLUDES with CPPFLAGSIgnacio Casal Quinteiro2015-10-311-22/+22
|
* Canonicalize the spacing around if statements and g_return_* invocationsРуслан Ижбулатов2014-08-052-0/+2
|
* Fix the unused arguments warningsРуслан Ижбулатов2014-08-052-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* char/xmlChar castingРуслан Ижбулатов2014-08-052-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* gchar/guchar types and castingРуслан Ижбулатов2014-08-057-43/+43
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710076
* cr-tknzr: Handle signed unitsJasper St. Pierre2012-10-162-2/+6
| | | | | | Parse something like '-20px' correctly. https://bugzilla.gnome.org/show_bug.cgi?id=686239
* Modernise and simplify configureChristian Persch2011-12-111-2/+2
|
* Fixed format string issues by giving static literals, fixes bug 640897Tobias Mueller2011-12-062-10/+6
|
* Remove redundant .cvsignore filesThomas Wood2009-02-094-14/+0
| | | | svn path=/trunk/; revision=322
* dim mar 5 23:32:14 CET 2006 Dodji SeketeliDodji Seketeli2006-03-051-1/+1
| | | | | | | | | | * configure.in,docs/Makefile.am: unwire gtk-doc temporarily. Couldn't make it distcheck otherwise. * tests/Makefile.am: add global-vars.sh.in to EXTRA_DIST files. * confifure.in: increase library REVISION number, for 0.6.1 release. ============= 0.6.1 release =======================
* Hush now baby, baby don't you cry...Kjartan Maraas2006-01-271-0/+7
|
* applied the following patches:CEST 2005 Dodji Seketeli2005-05-1011-92/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue May 10 21:49:05 CEST 2005 Dodji Seketeli <dodji@seketeli.org> applied the following patches: dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-29 2004-06-09 00:09:41 GMT updated NEWS file for 0.6.0 [Dodji Seketeli] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-30 2004-09-20 16:13:02 GMT fixed a nasty memory management bug [Dodji Seketeli] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-31 2005-02-10 21:41:04 GMT rm test output upon 'make clean' [Peter Moulder] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-32 2005-02-13 13:14:16 GMT make 'all' target a prerequisite of the 'test' target [Peter Moulder] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-33 2005-02-13 19:24:25 GMT allow building/testing in a directory different from srcdir [Peter Moulder/Dodji Seketeli] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-34 2005-02-13 19:42:48 GMT added better api documentation [Peter Moulder] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-35 2005-05-05 16:38:07 GMT initial port to gtk-doc, switch to automake 1.7 [Sven Herzberg, Dodji Seketeli] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-36 2005-05-05 16:51:38 GMT more gtk-doc stuffs [Dodji Seketeli] dodji@gnome.org--xml-style-2004/libcroco--mainline--0.6--patch-37 2005-05-06 14:20:20 GMT typos and c++ compilation fixes [Peter Moulder]
* synchronize with libcroco--mainline--0.6--patch-28.tla-cvs-synch-06-09-2004-0Dodji Seketeli2004-06-081-1/+1
| | | | | | 2004-06-09 Dodji Seketeli <dodji@gnome.org> synchronize with libcroco--mainline--0.6--patch-28.
* *** empty log message ***tla-cvs-synch-05-29-2004-1Dodji Seketeli2004-05-291-0/+2
|
* Synchronize with libcroco--mainline--0.6--patch-25.Dodji Seketeli2004-05-295-43/+75
| | | | | | 2004-05-29 Dodji Seketeli <dodji@gnome.org> Synchronize with libcroco--mainline--0.6--patch-25.
* Changes from arch/CVS synchronizationDodji Seketeli2004-04-183-12/+0
|
* Changes from arch/CVS synchronizationDodji Seketeli2004-04-183-4/+7
|
* Changes from arch/CVS synchronizationDodji Seketeli2004-04-1817-175/+637
|
* ignore stuffThomas Vander Stichele2004-04-013-0/+6
|
* Merged with libcroco--mainline--0.1--patch-22Dodji2004-03-161-193/+0
| | | | | | 2004-03-16 Dodji <dodji@gnome.org> Merged with libcroco--mainline--0.1--patch-22
* Merged with libcroco--mainline--0.1--patch-21Dodji2004-03-153-6/+74
| | | | | | 2004-03-15 Dodji <dodji@gnome.org> Merged with libcroco--mainline--0.1--patch-21
* *** empty log message ***Dodji Seketeli2004-03-1320-78/+231
|
* fixed a memory management bug reported by Rob BUIS.INITIAL_GNU_ARCH_IMPORTGNOME_2_6_ANCHORDodji Seketeli2004-03-071-19/+15
| | | | | | | | | | | | | | | 2004-03-07 Dodji Seketeli <dodji@gnome.org> * src/cr-statement.c: (parse_page_start_page_cb) fixed a memory management bug reported by Rob BUIS. (cr_statement_at_page_rule_to_string): added this new helper function. (cr_statement_dump_page): make this use cr_statement_at_page_rule_to_string(). * tests/test4-main.c: (test_cr_statement_at_page_rule_parse_from_buf): added this to start debugging a problem related to @page rule parsing.
* re-indented the source files to make'em comply with gnome indentationDodji Seketeli2004-03-079-1673/+1385
| | | | | | | | 2004-03-07 Dodji Seketeli <dodji@gnome.org> * src/*.c: re-indented the source files to make'em comply with gnome indentation rules. * libcroco-indent: added this indentation script.
* when you reach an EOF, don't assume it's an error. Return the alreadyDodji2004-03-061-17/+42
| | | | | | | | | | | 2004-03-06 Dodji <dodji@gnome.org> * src/cr-tknzr.c: (cr_tknzr_parse_num): when you reach an EOF, don't assume it's an error. Return the already parsed part of the number. Next attempt of parsing will result in an * tests/test4-main.c: udpated this test the fix made above. CR_END_OF_INPUT_ERROR.
* fixed silly bug in there. added the support of the "!important" keyword atDodji Seketeli2004-03-044-4/+6
| | | | | | | | | | | | | | | | | | 2004-03-05 Dodji Seketeli <dodji@gnome.org> * csslint/csslint.c: (parse_cmd_line) fixed silly bug in there. * src/cr-declaration.[ch],src/cr-om-parser.c, src/cr-parser.[ch],src/cr-statement.c,tests/test2-main.c, tests/test3-main.c: added the support of the "!important" keyword at the parsing level. * tests/test-inputs/test4.1.css: update nr tests to reflect the new !important thing. * src/cr-sel-eng.c: (put_css_properties_in_props_list): fix a small subtle bug in here. Selection engine is becoming more and more reliable ;).
* applied a patch from Kjartan Maraas to replace the g_strup()Dodji Seketeli2004-03-042-4/+10
| | | | | | | | | | | | | | | | | | | | 2004-03-04 Dodji Seketeli <dodji@gnome.org> * src/cr-enc-handler.c: (cr_enc_handler_resolve_enc_alias): applied a patch from Kjartan Maraas to replace the g_strup() g_ascii_strup(). This closes * csslint/Makefile.am,src/cr-simple-sel.h,src/cr-term.h src/cr-token.h,tests/Makefile.am: Applied patch http://bugzilla.gnome.org/showattachment.cgi?attach_id=23422. Modified the patch a little bit so that I use prog_LDFLAGS instead of AM_LDFLAGS. AM_LDFLAGS just seems not to be supported by my automake-1.4. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=131643 . * tests/test-output-refs/test4.2.css.out: updated this non regresstion test reference output due to a small modification in the @page rule dump format.
* applied a patch of Rob BUIS to add the support of the :lang() pseudo classDodji Seketeli2004-02-293-0/+13
| | | | | | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: applied a patch of Rob BUIS to add the support of the :lang() pseudo class using the pluggable pseudo class system. * tests/test5-main.c,tests/test-inputs/test5.1.css,tests/test-output-refs/test5.1.css.out: Updated the non regression tests suite to test the :lang() pseudo class.
* Fixed a bug that was "forgetting" all the properties gathered during theDodji Seketeli2004-02-191-7/+1
| | | | | | | | | | 2004-02-19 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: (cr_sel_eng_get_matched_properties_from_cascade): Fixed a bug that was "forgetting" all the properties gathered during the cascading algorithm but the last ones. * tests/Makefile.am: a bit of cleanup here.
* when we encounter an EOF right after a ';' don't return an error. fix aDodji Seketeli2004-02-131-3/+3
| | | | | | | | | | | | | | | | | | | | 2004-02-13 Dodji Seketeli <dodji@gnome.org> * src/cr-declaration.c: (cr_declaration_parse_list_from_buf): when we encounter an EOF right after a ';' don't return an error. * src/cr-parser.c: (CHECK_PARSING_STATUS_ERR): fix a possibly nasty typo. (cr_parser_parse_property): when there is an error here, return the underlying error instead of returning just CR_PARSING_ERROR. (cr_parser_parse_declaration): when we encounter an EOF just at the beginning of parsing, return CR_END_OF_INPUT_ERROR instead of CR_PARSING_ERROR. More generaly, we should always return CR_END_OF_INPUT_ERROR when we encounter that error, and not return CR_PARSING_ERROR instead. tests/test4-main.c: (test_cr_declaration_parse_list): updated this to reflect catch trailing ';' at the end of declaration list.
* added this new api entry point to parse comma separated list of propertyDodji Seketeli2004-02-121-2/+49
| | | | | | | | | | | | | | | | 2004-02-12 Dodji Seketeli <dodji@gnome.org> * src/cr-declaration.[ch]: (cr_declaration_parse_list_from_buf): added this new api entry point to parse comma separated list of property declarations. * src/cr-parser.c: (cr_parser_parse_expr): dont return an error when we encounter EOF immediately at the end of an expression. (cr_parser_get_tknzr): added this new api entry point to get the parser's underlying tokenizer. * src/cr-statement.h: fixed a comment here. * tests/test4-main.c: wrote a test for the new cr_declaration_parse_list_from_buf() function.
* updated this to reflect this big change removed this test as it does notDodji Seketeli2004-01-241-0/+0
| | | | | | | | 2004-01-24 Dodji Seketeli <dodji@gnome.org> * autogen.sh: updated this to reflect this big change * tests/test-output-refs/test7.out: removed this test as it does not belong to libcroco anymore.
* separated the library into two projects. Libcroco is now the combinationDodji Seketeli2004-01-241-28/+7
| | | | | | | | | | | 2004-01-24 Dodji Seketeli <dodji@gnome.org> * all: separated the library into two projects. Libcroco is now the combination of the parser and the selection engine. A new project is born: sewfox. It is basically the xml rendering/layout engine. Libcroco now needs libxml2 and glib only. Sewfox need libgnomecanvas2.
* some light cosmetic changes. several fixes. Managed to make the pluggableDodji Seketeli2003-12-242-0/+22
| | | | | | | | | | | 2003-12-24 Dodji Seketeli <dodji@gnome.org> * src/parser/cr-additional-sel.h,src/parser/cr-pseudo.h, src/parser/cr-utils.h: some light cosmetic changes. * src/seleng/cr-sel-eng.c: several fixes. Managed to make the pluggable handler for pseudo class selectors evaluation work. Wrote a handler for the ":first-child" pseudo class selector. This class is now officially supported.
* small cosmetic changes. started to work on the support of a pluggableDodji Seketeli2003-12-241-1/+1
| | | | | | | | | | 2003-12-24 Dodji Seketeli <dodji@gnome.org> * src/parser/cr-additional-sel.h: small cosmetic changes. * src/seleng/cr-sel-eng.c: started to work on the support of a pluggable handler for pseudo class selectors evaluation. Wrote facilities to register/unregister/lookup the handler.
* added a test case for the A + B type of selectors. added added theseDodji Seketeli2003-12-142-7/+7
| | | | | | | | | | | | | | | | | 2003-12-14 Dodji Seketeli <dodji@gnome.org> * docs/examples/selection-example-1.c: * docs/examples/selection-example-1.xml: * docs/examples/selection-example-1.css: added a test case for the A + B type of selectors. added * src/seleng/cr-sel-eng.c: (get_next_element_node) (get_prev_element_node) (get_next_parent_element_node): added these helper functions to help ignore non element nodes in the selector matcher. (sel_matches_node_real): Do not consider non element nodes when evaluating a selector.
* added this function to factorise the evaluation of additional selectors.Dodji Seketeli2003-12-122-0/+6
| | | | | | | | | | 2003-12-12 Dodji Seketeli <dodji@gnome.org> * src/seleng/cr-sel-eng.c: (additional_selector_matches_node): added this function to factorise the evaluation of additional selectors. (sel_matches_node_real ): use additional_selector_matches_node(). This fixes a selector bug spotted by Stefan Seefeld.
* big cleanup here. make sure seleng, layeng and tests are disabled byDodji Seketeli2003-12-116-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | 2003-12-11 Dodji Seketeli <dodji@gnome.org> * Makefile.am: big cleanup here. * configure.in: make sure seleng, layeng and tests are disabled by default. Added makefiles in docs/ docs/example tests/ tests/test-inputs tests/test-output-refs * csslint/Makefile.am: cleaned this up. make sure to add seleng,layeng and glib compile flags whenever needed. * docs/Makefile.am,docs/examples/Makefile.am: new makefiles. * src/libcroco.h: removed references to cr-parser-input.h * src/layeng/Makefile.am: cleanup, make distcheck is happier. * src/parser/Makefile.am: cleanup, make distcheck is happier. * src/parser/cr-doc-handler.h: removed reference to cr-parser-input.h * src/parser/cr-layout-eng.h,src/parser/cr-parser-input.h: removed these. * src/parser/cr-parser.c: (cr_parser_new): fixed a typo here. * src/parser/cr-parser.h,src/parser/cr-tknzr.h: removed ref to cr-parser-input.h * src/seleng/Makefile.am: cleanup, make distcheck is happier. * tests/testctl: exclude makefiles when diffing outputs and re * outputs.
* rearranged the enum CRNumProp values.Dodji Seketeli2003-07-051-2/+4
| | | | | | | | | | | | | | | | | 2003-07-05 Dodji Seketeli <dodji at seketeli dot org> * src/seleng/cr-style.h: rearranged the enum CRNumProp values. * src/seleng/cr-style.c: fixed the border-x:<a number> bug. This now support also number and not only symbolic border width like thin,thick etc ... * src/parser/cr-num.c: documented the apis here. * src/layeng/cr-lay-eng.c: Fixed some subtle bugs and finally implemented the width:15% (set percentage to width). Dodji.
* updated this test reference output.Dodji Seketeli2003-06-292-1/+5
| | | | | | | | | | | | | | | | | 2003-06-30 Dodji Seketeli <dodji at seketeli dot org> * tests/test-output-refs/test4.1.css.out: updated this test reference output. * src/parser/cr-statement.c: fixed a typo that lead to a small regression detected by the non regression test suite. * tests/testctl: made sure no to consider the .cvsignore file during the final diff. * src/layeng/cr-box-view.[ch]: fixed some compiler warnings. Dodji.
* added the cr_term_parse_expression_from_buf() function. this is new andDodji Seketeli2003-06-201-2/+2
| | | | | | | | | | | | | | | | | 2003-06-20 Dodji Seketeli <dodji@seketeli.org> * src/parser/cr-term.[ch]: added the cr_term_parse_expression_from_buf() function. this is new and still needs to be tested. * src/parser/cr-parser.[hc]: made cr_parser_parse_expr() public. * src/parser/cr-declaration.[ch]: changed cr_declaration_parse() into cr_declaration_parse_parse_from_buf(). Dodji.
* updated this to test cr_statement_parse_from_buf(). It seems to work now.Dodji Seketeli2003-06-191-0/+104
| | | | | | | | | | | | | | 2003-06-19 Dodji Seketeli <dodji@seketeli.org> * tests/test4-main.[ch]: updated this to test cr_statement_parse_from_buf(). It seems to work now. Still some memleaks to fix. * src/parser/cr-statement.[ch]: some bug fixes in cr_statement_parse_from_buf() + added a new cr_statement_at_import_rule_parse_from_buf() method. Dodji.
* added cr_statement_font_face_rule_parse_from_buf () . and a genericDodji Seketeli2003-06-181-1/+33
| | | | | | | | | | | | | | | 2003-06-18 Dodji Seketeli <dodji@seketeli.org> * src/parser/cr-statement.[ch]: added cr_statement_font_face_rule_parse_from_buf () . and a generic cr_statement_parse_from_buf () that knows how to a parse virtually any css2 statement. This needs debugging though. * src/parser/cr-parser.c: fixed some possible sigsev that could occur when trying to access a null sac handler. Dodji.
* updated the test routine to testDodji Seketeli2003-06-181-0/+28
| | | | | | | | | | | | | | | 2003-06-18 Dodji Seketeli <dodji@seketeli.org> * tests/test4-main.c: updated the test routine to test cr_statement_at_charset_rule_parse_from_buf(). * src/parser/cr-statement.[ch]: added a new cr_statement_at_charset_rule_parse_from_buf() method to to create an "@charset" statement from a buffer text content. * src/parser/cr-parser.c:Fixeds a small possibility of memleak in cr_parser_parse_charse() Dodji.
* fixed a small typo in the "@page" rule embedded in gv_at_page_buf.dodji2003-06-181-1/+1
| | | | | | | | | | | | 2003-06-18 dodji <dodji@seketeli.org> * tests/test4-main.c: fixed a small typo in the "@page" rule embedded in gv_at_page_buf. * src/parser/cr-parser.c: fixed a small bug in the cr_parser_parse_page () function. Dodji.
* added test_cr_statement_at_page_rule_parse () to test the newdodji2003-06-171-0/+30
| | | | | | | | | | | | | 2003-06-17 dodji <dodji@seketeli.org> * tests/test4-main.c: added test_cr_statement_at_page_rule_parse () to test the new cr_statement_at_page_rule_parse_from_buf() function. * src/parser/cr-statement.[ch]: added a first version of cr_statement_at_page_rule_parse_from_buf(). This doesn't work. I need to debug it first. Dodji.
* resuming previous commit.Dodji Seketeli2003-06-171-0/+31
| | | | Dodji.
* updated this to test the new cr_statement_ruleset_parse_from_buf ()dodji2003-06-151-7/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-06-15 dodji <dodji@seketeli.org> * tests/test4-main.c: updated this to test the new cr_statement_ruleset_parse_from_buf () method. * src/parser/cr-statement.[ch]: Added a cr_statement_ruleset_parse_from_buf () method. This is based on the changes made in cr-parser.[ch]. * src/parser/cr-selector.[ch]: added a method cr_selector_parse_from_buf (). This is based on the changes made in cr-parser.[ch]. * src/parser/cr-parser.[ch]: Some rather important changes occured here ... revisited the way selectors and rulesets are parsed so that one could parse a buffer that contains only a ruleset. A visible implication of this is that cr_parser_parse_selector () and cr_parser_parse_ruleset () become public methods callable independantly. In the past, this was not possible. Only cr_parser_parse_stylesheet () was public. * src/parser/cr-om-parser.c: updated this to comply with the changes made in cr-doc-handler.[ch]. * src/parser/cr-doc-handler.[ch]: 1/ Created an explicitely private field of CRDocHandler to store parsing context, parsing result and any eventually needed private data structure. The privates fields are accessible through getters/setters though. 2/ made sure to increment the ref count of each instance of CRDocHandler at instanciation time. This may introduce some memleaks in the working code. I will fix them in next commits. * src/parser/cr-declaration.c: (cr_declaration_append2() ): modified this so that we can append declaration to a list of declarations that don't belong to a ruleset. Dodji.
* more fonts selection implementation.dodji2003-06-141-1/+1
| | | | | | | | | | | 2003-06-14 dodji <dodji@seketeli.org> * src/layeng/cr-lay-eng.c, src/seleng/cr-style.[hc]: more fonts selection implementation. * tests/test7-main.c: updated this to test the font selection implem. Dodji.
* added pango stuffs. added pango detection. a bit more font selection. adodji2003-06-121-1/+4
| | | | | | | | | | | | 2003-06-12 dodji <dodji@seketeli.org> * src/seleng/Makefile.am: added pango stuffs. * configure.in: added pango detection. * src/seleng/cr-fonts.c: a bit more font selection. * src/layeng/cr-lay-eng.c: a bit more font selection. * src/seleng/cr-style.c: font selection code again. Dodji.