Matthias Clasen
24f54d50c4
Update css node test for GtkSwitch changes
2016-03-24 22:43:27 -04:00
Matthias Clasen
1716e0b038
Revert "add a css style test for font: smaller"
...
This reverts commit a4ed154b03
.
The misparsing that is tested here will not be fixed in 3.20,
so keep this test out of the stable branch.
2016-03-24 22:43:27 -04:00
Matthias Clasen
a4ed154b03
add a css style test for font: smaller
2016-03-24 08:25:11 -04:00
Matthias Clasen
8205a304e8
Add a css node test for comboboxes
2016-03-02 15:20:31 -05:00
Matthias Clasen
444703f2bb
css node tests: Update notebook results
...
This is fallout from changing the tab states.
2016-03-01 23:25:56 -05:00
Benjamin Otte
3056d793a4
cssparser: Make _gtk_css_parser_has_number() a bit smarter
...
Previously we just checked the first character. And if that was a "-" as
in "-gtk-some-special-value", we assumed it was a number. Which it
clearly wasn't.
Test included
2016-02-23 04:22:19 +01:00
Matthias Clasen
c30d542a17
Some more CSS node tests for notebooks
2016-02-15 14:20:48 -05:00
Benjamin Otte
0cda3ba3e8
calc: Allow subterms with '(' ')' bracketing
...
Some more tests included.
2016-02-13 04:49:08 +01:00
Benjamin Otte
63d1f80742
css: Add support for '*' and '/' to calc()
...
More tests are included.
2016-02-13 04:49:08 +01:00
Benjamin Otte
4a9fa1e750
css: Add API to handle order when printing calc()
...
Also, add some tests and update old ones to print calc() statements
correctly.
2016-02-13 04:49:08 +01:00
Benjamin Otte
65dd9da44a
css: Add support for sums to calc()
...
This requires adding code to do math on number values:
gtk_css_number_value_multiply()
and
gtk_css_number_value_try_add()
were added to achieve that.
Some tests are included.
2016-02-13 04:49:08 +01:00
Benjamin Otte
cd6dc954f2
css: Add initial support for calc()
...
So far, calc() only supports literals, ie it's completely useless.
2016-02-13 04:49:08 +01:00
Matthias Clasen
e0f31ab7bb
Add css node tests for box packing
...
More tests to ensure that CSS node order is always physical
left-to-right.
2016-02-08 09:34:19 +01:00
Matthias Clasen
4a465e6832
Fix levelbar css node tests
...
These were affected by the recent change to level offset handling.
At the same time, make the test files more realistic by updating
the level offsets when we set a custom range.
2016-02-07 11:43:13 +01:00
Benjamin Otte
0c12601208
cssimageradial: Only allow at "<position>" after other props
...
Don't allow syntax like
at top left circle
but follow the spec about requiring the at <position> right before the
comma.
This is porbably because
circle at 10px 10px
could be interpreted as
circle 10px at 10px
with the now disallowed syntax, too.
Test included.
2016-02-05 19:31:47 +01:00
Benjamin Otte
982da040b2
cssimageradial: Only emit one error for wrong position
...
Test included.
2016-02-05 19:31:47 +01:00
Matthias Clasen
f2e08d3a9c
css tests: Fix style tests
...
Commit d0fd7990c3
changed
the location of builtin themes, breaking the loading of
the empty theme in test-css-style.
2016-02-05 16:35:43 +01:00
Matthias Clasen
132abb8749
css tests: Fix expected output
...
This is fallout from f7ec9c98ef
.
2016-02-05 16:35:43 +01:00
Matthias Clasen
586522d83c
Use TAP output for installed tests
2016-01-30 11:04:22 -05:00
Matthias Clasen
f887fec55c
Add a css style test for color names
...
Verify that we support all the css color names, with their expected
rgb values.
2016-01-29 18:23:25 -05:00
Matthias Clasen
8cbe309f36
css node tests: Update expected output
...
The entry undershoot change needs to be reflected in the
test output.
2016-01-27 13:23:58 -05:00
Matthias Clasen
7097a4ed64
Fix another quoting error in installed tests
...
Same as the previous one. I should fix my silly mistakes before
copying them around...
2016-01-25 13:02:13 -05:00
Matthias Clasen
cce493493c
testsuite: Fix a quoting error
...
This was breaking continous testing. Oops.
2016-01-25 10:56:19 -05:00
Matthias Clasen
bb92428112
notebook: Implement rtl flipping for CSS nodes
...
Use gtk_box_gadget_reverse_children and gtk_css_node_reverse_children
to flip the children of the header_gadget and the tabs_gadget when
appropriate.
Add new CSS node tests to verify that the node order is updated
as expected in all cases.
2016-01-19 21:40:47 -05:00
Matthias Clasen
c24c56a143
Forgotten file
2016-01-18 09:41:46 -05:00
Matthias Clasen
65ae48d707
Add more CSS node tests for notebooks
2016-01-18 07:41:33 -05:00
Matthias Clasen
83eb36a896
Add CSS node tests for checkbutton rtl flipping
2016-01-18 00:29:29 -05:00
Matthias Clasen
121aec6de8
Add css node tests for expander rtl flipping
2016-01-18 00:24:53 -05:00
Matthias Clasen
2ec16c9f91
Add css node tests for right-to-left levelbars
2016-01-13 13:39:41 -05:00
Matthias Clasen
a0fdbff938
Add css node tests for paned node ordering
2016-01-13 00:41:44 -05:00
Matthias Clasen
e386fcae04
Update expected output of notebook css node test
...
The stack node is new.
2016-01-13 00:26:48 -05:00
Matthias Clasen
6d239cfba7
Add a css style test for adjacent states
...
This test checks that the selector E:state + F works as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=722727
2016-01-10 14:51:36 -05:00
Matthias Clasen
d76fb63ba8
Add a test for ltr vs rtl boxes.
...
This tests that horizontal boxes flip their child nodes
according to text direction to maintain the left-to-right
ordering of child nodes for both text directions.
2016-01-06 14:57:42 -05:00
Matthias Clasen
a519a1a928
CSS node tests: Add a way to test rtl vs ltr
...
CSS nodes have a linear sibling relationship; this is supposed
to correspond to left-to-right placement in horizontal arrangements.
This commit explicitly sets the text direction to rtl if the
filename ends in .rtl.ui, so we can test differences in node
tree layout between text directions.
2016-01-06 14:57:42 -05:00
Matthias Clasen
d9a70bc56a
Add a CSS style test for gradients
...
This mainly just tests that gradients are properly
reproduced by gtk_style_context_to_string.
2016-01-04 13:59:48 -05:00
Matthias Clasen
fcea12f790
Add some tests for radial gradient parsing
...
These are the examples from the CSS spec.
2016-01-04 13:59:24 -05:00
Matthias Clasen
d8e1fd6079
Update expected output
...
The previous commit changed the format of the output
generated by the CSS style tests.
2016-01-03 17:23:59 -05:00
Matthias Clasen
e1634d18de
Update expected output for CSS style tests
...
The format for CSS values changed slightly in one of the
previous commits.
2016-01-03 15:41:09 -05:00
Matthias Clasen
3c26aef826
Use a custom theme for CSS style tests
...
Use a custom, empty theme and stop importing reset-to-defaults.css.
This avoids overwriting initial values, so our initial value
filtering works better.
2016-01-03 15:39:55 -05:00
Matthias Clasen
d0e648d4f6
Update expected output for node and style tests
...
The previous commit changed the format of the output.
2016-01-03 14:41:43 -05:00
Cosimo Cecchi
28e185dd1b
tests: fix Makefile.am syntax
...
It requires a tab character, or the build will fail.
2016-01-03 11:33:19 -08:00
Matthias Clasen
489928cbb4
Fix the build
2016-01-03 12:05:57 -05:00
Matthias Clasen
f7a93c015c
Forgotten file
...
I forgot to add this file to source control when the new tests
were initially added.
2016-01-03 12:02:11 -05:00
Matthias Clasen
ed5ebc0711
Add a css style test for currentColor
2016-01-03 09:19:31 -05:00
Matthias Clasen
33be60b0ab
Add a css style test for inherit and initial
2016-01-03 09:19:31 -05:00
Matthias Clasen
1ec34ae085
Add a css style test for :first/last/only-child
2016-01-03 09:19:31 -05:00
Matthias Clasen
82a571e0ca
Add a css style test for font inheritance
2016-01-03 09:19:31 -05:00
Matthias Clasen
905ab53c71
Add a test framework for CSS styles
...
This uses the same function for dumping CSS nodes and styles
as the CSS node test. It can be used to test aspects of inheritance
and matching, as well as initial values.
No actual tests yet.
2016-01-03 09:19:31 -05:00
Matthias Clasen
864693e5aa
Add CSS node tests for levelbars
2016-01-03 09:19:31 -05:00
Matthias Clasen
0ce5075748
Add CSS node test for progressbars
2016-01-03 09:19:31 -05:00