Krzesimir Nowak
49d994ddc2
testsuite: Fix leak
2019-05-21 19:23:00 +02:00
Benjamin Otte
04da31f5f5
build: Convert CSS parser tests to single meson tests
2019-05-18 17:06:08 +02:00
Benjamin Otte
b651a355ab
build: Fix
...
I did somethig wrong there. Whoops
2019-05-08 01:15:17 +02:00
Benjamin Otte
dd299c50bf
csstokenizer: Add more testcases
2019-05-08 00:58:52 +02:00
Benjamin Otte
bc7972dfa7
csstokenizer: Handle backslash at end of document
...
Testcases included.
2019-05-08 00:58:52 +02:00
Benjamin Otte
562e492056
csstokenizer: Consume the \ when encountering an error
...
Otherwise we infinitely end up with the error again.
Testcases added.
2019-05-06 05:56:06 +02:00
Benjamin Otte
7420f9c34a
testsuite: Rewrite text diff to use GSubprocess
...
... instead of g_spawn(). Avoids having to create a temp file, too.
2019-04-27 06:20:30 +02:00
Benjamin Otte
f37573f8dc
testsuite: Check errors not just for line, but for full range
...
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.
2019-04-12 19:34:29 +02:00
Benjamin Otte
49f8b571b9
testsuite: Update integer test
...
Make the test use an actual integer property that accepts negative
numbers (opacity) instead of one that wants units (margin-top) or
can't deal with negative numbers (everything else).
2019-04-12 19:34:29 +02:00
Benjamin Otte
a8f712b09a
cssection: Return locations, not numbers
...
Now that we have GtkCssLocation, actually use it.
2019-04-12 19:34:28 +02:00
Benjamin Otte
acaec5f186
testsuite: Update parser tests to new errors
...
Some errors are now properly detected as unknown values when previously
they were just treated as syntax errors.
2019-04-12 19:34:28 +02:00
Benjamin Otte
c8589a9a2f
testsuite: Handle warnings in CSS tests
2019-04-12 19:34:28 +02:00
Benjamin Otte
a31e5f7a8c
cssshadow: Use gtk_css_parser_consume_any()
...
This way, the arguments can now really be speicified in any order.
A new testcase testing all the ordering possibilities has been added.
2019-04-12 19:34:28 +02:00
Benjamin Otte
93b643c44d
css: Make font-weight an integer
...
This conforms to what Pango does and to the CSS4 spec. And it makes the
parsing code easier. So let's go for it.
2019-04-12 19:34:28 +02:00
Benjamin Otte
a938c14d11
build: Add gtk-css static library
...
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).
2019-04-12 19:34:28 +02:00
Benjamin Otte
799cb39e08
Remove win32 themeing support
...
It was unused through all of GTK 3, so it is not worth supporting.
The best Windows themes do not make use of it at all.
2019-03-22 22:30:01 +01:00
Matthias Clasen
837d9bf39e
Remove css test for key bindings
2019-02-21 12:29:46 -05:00
Matthias Clasen
55d35dd13e
Update the expected results in the testsuite
...
the -gtk-scaled() change in the previous commit makes it so
that we now print out the scale factors. Update the expected
output of affected tests to take that into account.
2018-03-15 13:38:41 -04:00
Benjamin Otte
4ac3f916d0
css: Parse hex colors with alpha value
...
The CSS color spec version 4 introduces this, support has hit Safari,
Chrome and Firefox, so this looks like a feature that's here to stay.
https://drafts.csswg.org/css-color/#hex-notation
2018-03-02 02:00:24 +01:00
Matthias Clasen
4a22704d82
Fix test environments
2017-10-18 17:30:20 +02:00
Matthias Clasen
b0b0095cf8
Test suite cosmetics
...
Reshuffle things a bit more, sort the test files into subdirectories,
and shorten their names.
2017-10-18 17:30:20 +02:00
Matthias Clasen
abe7d8a846
More testsuite cosmetics
...
Unify the test naming some more.
2017-10-18 17:30:20 +02:00
Matthias Clasen
50c8221058
testsuite: Add missing files
2017-10-18 17:30:20 +02:00
Matthias Clasen
8b63b180d3
Distribute all test files
2017-10-18 17:30:20 +02:00
Matthias Clasen
91497348bf
Update all css parser tests
...
I have not tracked down in detail where all these changes originate,
this commit just gets things back to working again.
2017-10-18 17:30:20 +02:00
Matthias Clasen
6b2eafe1bb
Drop widget style property test
2017-10-18 17:30:20 +02:00
Matthias Clasen
5824d8b5ee
Stop testing deprecated css features
2017-10-18 17:30:20 +02:00
Matthias Clasen
37f1d180c3
Make css parser tests run
...
We need to set G_TEST_SRCDIR and friends for this to do anything.
Setting it reveals that a bunch of the tests are broken.
2017-10-12 15:58:05 +08:00
Matthias Clasen
eb71cd195a
testsuite: cosmetics
...
Put all tests in a suite, and order them in a nicer way.
This makes the test output look better.
2017-10-11 19:33:43 -05:00
Matthias Clasen
a4deb7e7b4
Reshuffle the css tests a bit
2017-10-10 00:18:21 -04:00
Matthias Clasen
6c294e6804
Install css parser tests again
...
Reinstate the installed tests for the css parser.
2017-10-09 23:29:10 -04:00
Emmanuele Bassi
391d1a04ec
Drop Autotools build
...
We are officially switching to Meson as the default build system for
GTK+.
2017-08-14 22:23:09 +01:00
Chun-wei Fan
171ff43340
tests: Include system headers appropriately
...
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
2017-07-21 23:36:03 +08:00
Timm Bäder
082cf3553d
meson: Build gtk marshallers
...
And fix libgtk_dep/libgdk_dep to link_with the shared lib
2017-05-03 15:10:50 +01:00
Timm Bäder
1e8a606403
meson: Add unit test files
2017-05-03 15:10:50 +01:00
Matthias Clasen
52b7a96bec
css parser tests: Fix radial gradient test results
...
This changed in commit 2a5a94b260
.
2017-03-31 12:50:14 -04:00
Matthias Clasen
19f6df0c5e
css parser tests: Fix up the pseudo class test
...
We don't recognize non-standard names anymore.
2017-03-31 12:48:06 -04:00
Matthias Clasen
55a1587f55
css parser tests: Update border image test results
...
We lost the ability to dump some images.
2017-03-31 12:48:05 -04:00
Matthias Clasen
7d7b45cac0
css parser tests: Drop tests for -gtk-gradient
...
No longer needed.
2017-03-31 12:48:05 -04:00
Matthias Clasen
7f08336108
css parser tests: Update background-image test results
...
We lost the ability to dump some kinds of images.
2017-03-31 12:48:05 -04:00
Matthias Clasen
215f1b9e96
css parser tests: Fix integer test results
...
Many of the deprecation have been removed here.
2017-03-31 12:48:05 -04:00
Matthias Clasen
b2f90e0e3b
css parser tests: Fix background-blend-mode test
...
The css spec calls it 'saturation', not 'saturate'.
2017-03-31 12:48:05 -04:00
Matthias Clasen
c4fd5bc233
Add a css parser test for border-spacing
2016-12-10 20:41:07 -05:00
Matthias Clasen
b1f2e3b581
Remove -gtk-gradient from css parser tests
...
It is not supported anymore.
2016-12-10 20:40:48 -05:00
Benjamin Otte
dfd9150a82
build: Don't link against libgtk and libgdk
...
libgdk is statically linked these days, so if you link against it, all
of its symbols will exist twice: Once in libgtk.so and once in your
binary.
2016-11-20 11:19:32 +01:00
Benjamin Otte
4322b69528
cssprovider: Return void, not TRUE
...
Parsing a css file always succeeds as CSS can recover from parsing
errors.
2016-10-17 17:41:03 +02:00
Timm Bäder
f2c455fedb
Remove GtkThemingEngine
...
As well as the corresponding GtkCssEngineValue used to parse it in css.
2016-10-16 18:17:21 +02:00
Matthias Clasen
d053d5c58f
Rename Makefile references from 3.0 to 4.0
...
This is almost certainly incomplete.
Needs careful scrutiny
2016-10-07 10:34:50 -04:00
Matthias Clasen
c7654c737c
Add a css parser test for background-blend-mode
2016-07-05 13:16:43 -04:00
Matthias Clasen
7855294594
Fix css parser tests
...
These tests were affected by the font and linear-gradient parsing
changes.
2016-04-26 00:03:09 -04:00