summaryrefslogtreecommitdiff
path: root/testsuite/css/parser/test-css-parser.c
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Improve diff_with_file() functionBenjamin Otte2020-01-281-0/+10
| | | | | | | | | | | Properly handle diff(1) failing. In this particular case, the test passed a NULL input file to the diff (that was fixed, too) and then diff only found one input file and aborted. But without this fix, we'd also not catch other abortion reasons for diff() - as long as it exited in any way, we were happy.
* testsuite: Fix leakKrzesimir Nowak2019-05-211-0/+1
|
* testsuite: Rewrite text diff to use GSubprocessBenjamin Otte2019-04-271-45/+33
| | | | ... instead of g_spawn(). Avoids having to create a temp file, too.
* testsuite: Check errors not just for line, but for full rangeBenjamin Otte2019-04-121-7/+5
| | | | | | | Instead of just checking that the line of the error message is correct, assert that start and end position are on the correct character offset. Also fix all the tests to conform to this.
* cssection: Return locations, not numbersBenjamin Otte2019-04-121-2/+5
| | | | Now that we have GtkCssLocation, actually use it.
* testsuite: Handle warnings in CSS testsBenjamin Otte2019-04-121-1/+3
|
* build: Add gtk-css static libraryBenjamin Otte2019-04-121-2/+2
| | | | | | | | | | This library is meant to be the new CSS library that gets used from GDK, GSK and GTK for string printing and parsing. As a first step, move GtkCssProviderError into it. While doing so, split it into GtkCssParserError (for critical problems) and GtkCssParserWarning (for non-critical problems).
* tests: Include system headers appropriatelyChun-wei Fan2017-07-211-0/+4
| | | | | | | Don't include unistd.h on Windows, and include the appropriate headers on Windows as necessary. https://bugzilla.gnome.org/show_bug.cgi?id=773299
* cssprovider: Return void, not TRUEBenjamin Otte2016-10-171-1/+1
| | | | | Parsing a css file always succeeds as CSS can recover from parsing errors.
* test-css-parser: Add a way to generate outputMatthias Clasen2015-12-271-7/+29
| | | | | | Use test-css-parser --generate foo.css to see the parser output on stdout. This makes it more convenient to add new css files to the testsuite.
* css parser test: Drop remaining made-up propertiesMatthias Clasen2015-12-211-29/+0
| | | | | These are not used anymore in any tests, and the css parser doesn't support parsing custom properties anymore.
* test-css-parser: Drop unused propertyMatthias Clasen2015-12-211-6/+0
| | | | The rgba-property is no longer used in any tests, drop it.
* test-css-parser: Drop unused propertyMatthias Clasen2015-12-211-6/+0
| | | | The border-property is no longer used in any tests, drop it.
* test-css-parser: Drop unused propertiesMatthias Clasen2015-12-211-55/+0
| | | | | We don't have any tests involving these style properties, so don't install those.
* Move gtkthemingengine to deprecated directoryMatthias Clasen2014-08-291-0/+2
| | | | This is the place for wholly-deprecated sources.
* testsuite: Don't leak in test runnerBenjamin Otte2014-02-231-1/+7
|
* Use g_test_get_dir in test to locate filesMatthias Clasen2013-05-291-6/+1
| | | | This makes the tests work both installed and for make check.
* build: Move tests/css to testsuite/cssBenjamin Otte2013-05-151-0/+423