summaryrefslogtreecommitdiff
path: root/testsuite/css
Commit message (Collapse)AuthorAgeFilesLines
* Fix up css parser testsMatthias Clasen2020-01-108-324/+324
| | | | | | | Some css parser tests were relying on the parser preserving some units. Update them. The numbers look uglier this way, but they are the same numbers the css machinery was using anyway.
* update css parser test resultsMatthias Clasen2020-01-104-88/+88
| | | | We now print colors differently in some places.
* testsuite: Update combobox testsMatthias Clasen2019-12-291-56/+28
| | | | Some of the expected output needs to be updated.
* css: Handle invalid :not() selectorsBenjamin Otte2019-12-034-0/+9
| | | | | | | | We weren't correctly ending the ( ) block when encountering an error. Testcases added. Fixes #2281
* testsuite: Fix expected test outputBenjamin Otte2019-11-2324-279/+0
| | | | This reverts part of 91497348bf1ea90ef1056bdc8727bbea645c21e3
* cssprovider: Don't add empty rulesetsBenjamin Otte2019-11-231-1/+1
| | | | | | | This change was lost during the parser changes, but the newly added test exposes it. And fix the expected error, the syntax has changed.
* Fix crash in parse_border()Alexandr Miloslavskiy2019-11-234-2/+10
| | | | | | | | | | | | | | | The bug was introduced in commit: 9b7640b8 by Benjamin Otte, 2012-03-26 17:24:02 styleproperty: Make _gtk_style_property_parse_value() return a CssValue In that commit, `values` changed from `GValue*` to `GtkCssValue**`, but one `!G_IS_VALUE (&values[8])` was left untouched. As a result, if `border` shorthand contains anything after color, it might crash, depending on memory layout. New test included. Fixes: #751
* expander: Rename CSS nodesBenjamin Otte2019-10-152-4/+4
| | | | | | | | | | The expander icon is renamed from "arrow" to "expander". The expander widget itself is renamed from "expander" to "expander-widget" (Better ideas welcome). This makes it possible to have an "expander" icon in more places then the GtkExpander widget (in particular in tree lists) and not confuse it with arrows.
* notebook: Use a box layoutTimm Bäder2019-09-1310-160/+150
| | | | And incidentally make the CSS node docs correct again.
* spinbutton: Use a box layoutTimm Bäder2019-09-091-8/+7
|
* Merge branch 'tests-no-box-packing' into 'master'Christoph Reiter2019-07-181-4/+0
|\ | | | | | | | | testsuite: Remove dangling references to box-packing tests See merge request GNOME/gtk!997
| * testsuite: Remove dangling references to box-packing testsSimon McVittie2019-07-181-4/+0
| | | | | | | | | | | | These were removed in commit c47abb5f, before 3.96.0. Signed-off-by: Simon McVittie <smcv@debian.org>
* | scrollbar: Use a box layoutTimm Bäder2019-07-151-16/+12
|/ | | | Makes a lot more sense than the intermediate box just for its layout.
* Update css node resultsMatthias Clasen2019-06-011-16/+54
|
* testsuite: Fix leakKrzesimir Nowak2019-05-211-0/+1
|
* build: Convert CSS parser tests to single meson testsBenjamin Otte2019-05-181-10/+18
|
* css: Add gtk_css_data_url_parse()Benjamin Otte2019-05-122-0/+116
| | | | This surprisingly decodes data URLs.
* build: FixBenjamin Otte2019-05-081-1/+1
| | | | I did somethig wrong there. Whoops
* csstokenizer: Add more testcasesBenjamin Otte2019-05-0813-0/+40
|
* csstokenizer: Handle backslash at end of documentBenjamin Otte2019-05-087-0/+15
| | | | Testcases included.
* csstokenizer: Consume the \ when encountering an errorBenjamin Otte2019-05-067-0/+51
| | | | | | Otherwise we infinitely end up with the error again. Testcases added.
* 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: Update references for style testBenjamin Otte2019-04-128-195/+195
| | | | We have more accurate section printouts now and they are used here.
* testsuite: Check errors not just for line, but for full rangeBenjamin Otte2019-04-1297-400/+451
| | | | | | | 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.
* testsuite: Update integer testBenjamin Otte2019-04-123-28/+28
| | | | | | 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).
* cssection: Return locations, not numbersBenjamin Otte2019-04-121-2/+5
| | | | Now that we have GtkCssLocation, actually use it.
* testsuite: Update parser tests to new errorsBenjamin Otte2019-04-121-2/+2
| | | | | Some errors are now properly detected as unknown values when previously they were just treated as syntax errors.
* testsuite: Handle warnings in CSS testsBenjamin Otte2019-04-121-1/+3
|
* cssshadow: Use gtk_css_parser_consume_any()Benjamin Otte2019-04-123-0/+88
| | | | | | This way, the arguments can now really be speicified in any order. A new testcase testing all the ordering possibilities has been added.
* css: Make font-weight an integerBenjamin Otte2019-04-123-10/+10
| | | | | This conforms to what Pango does and to the CSS4 spec. And it makes the parsing code easier. So let's go for it.
* build: Add gtk-css static libraryBenjamin Otte2019-04-1257-188/+188
| | | | | | | | | | 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).
* testsuite/css: Change the active RadioButtonEmmanuele Bassi2019-04-051-1/+1
| | | | | | | | | | The `buttons` test for CSS nodes sets the second RadioButton as the active one, whereas the first RadioButton is not set as active. Nevertheless, the reference output says that the first radio button should match the `:checked` selector, whereas the second radio button should not. The fact that the test currently passes is a mystery.
* testsuite/css: Update UI filesEmmanuele Bassi2019-04-0524-176/+82
| | | | | Run the UI files through `gtk-builder-tool simplify --3to4` to update the layout properties.
* Convert ui filesMatthias Clasen2019-03-272-14/+0
| | | | Run gtk4-builder-tool simplify --3to4 over all ui files.
* Remove win32 themeing supportBenjamin Otte2019-03-223-14/+0
| | | | | | 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.
* Remove css test for key bindingsMatthias Clasen2019-02-2128-56/+0
|
* css tests: Update ui files for notebooksMatthias Clasen2019-02-2110-280/+262
|
* css tests: Update expected output for entriesMatthias Clasen2019-02-212-5/+5
| | | | Flat is gone.
* testsuite: update css node testsMatthias Clasen2019-02-192-9/+13
| | | | The entries have changed. Reflect that.
* Update css tests resultsMatthias Clasen2019-01-241-4/+4
| | | | | These now show images as children of the switch, as expected.
* testsuite: Remove box packing css node testsTimm Bäder2019-01-234-74/+0
| | | | | Testing the correct css order for mixed pack-start/pack-end cases doesn't make sense if boxes don't have a notion of pack-type anymore.
* Update expected node filesTimm Bäder2018-09-241-4/+4
| | | | We don't technically hide the arrow nodes anymore.
* notebook: Stop reversing tabs based on text directionTimm Bäder2018-06-182-8/+8
|
* box: Don't reorder children based on text directionTimm Bäder2018-06-183-4/+4
| | | | | Make :first-child always be the first child, i.e. the leftest one in LTR and the rightest one in RTL.
* paned: Don't reorder css nodes based on text directionTimm Bäder2018-06-181-2/+2
|
* Update the expected results in the testsuitecss-image-scaledMatthias Clasen2018-03-151-1/+1
| | | | | | 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.
* css: Parse hex colors with alpha valueBenjamin Otte2018-03-025-24/+32
| | | | | | | 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
* css node tests: Update expected outputTimm Bäder2017-12-081-2/+2
|
* testsuite: Update expected results for scale changesBenjamin Otte2017-11-051-8/+8
|
* stylecontext: Port to use display instead of screenBenjamin Otte2017-10-311-5/+5
|