]> Pileus Git - ~andy/gtk/commit
tests: Add a test for the CSS parser
authorBenjamin Otte <otte@redhat.com>
Thu, 7 Apr 2011 00:15:42 +0000 (02:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 19:58:43 +0000 (21:58 +0200)
commit64fd32cdef9e55d35cf424c36b0f35ada736258d
treea8edf421d6b2e54f58e4ebd847123b49a8b5bd29
parent9d9f1e38b2af6d3764f04ae5b42adf27c291fee5
tests: Add a test for the CSS parser

Tests in the parser need 1 or 2 files:
1) test.css
2) test.ref.css (optional, defaults to test.css)

The test instantiates a CSS provider, loads test.css, then dumps the
loaded file to test.out.css and then checks that that file matches
test.ref.css. If not, it dumps a diff between those two to the log and
fails.

You want to run the test with --verbose to get the output dumped to
stdout.
configure.ac
tests/Makefile.am
tests/css/parser/Makefile.am [new file with mode: 0644]
tests/css/parser/test-css-parser.c [new file with mode: 0644]