mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +00:00
Add a css style test for font inheritance
This commit is contained in:
parent
905ab53c71
commit
82a571e0ca
@ -25,6 +25,7 @@ test_css_style_SOURCES = \
|
||||
test-css-style.c
|
||||
|
||||
test_data = \
|
||||
label.ui label.css label.nodes \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST += $(test_in_files) $(test_data)
|
||||
|
5
testsuite/css/style/label.css
Normal file
5
testsuite/css/style/label.css
Normal file
@ -0,0 +1,5 @@
|
||||
@import "reset-to-defaults.css";
|
||||
|
||||
box {
|
||||
font: "Comic Sans";
|
||||
}
|
6
testsuite/css/style/label.nodes
Normal file
6
testsuite/css/style/label.nodes
Normal file
@ -0,0 +1,6 @@
|
||||
window visible=0 state=dir-ltr classes=background
|
||||
decoration visible=1 state=dir-ltr
|
||||
box visible=1 state=dir-ltr classes=horizontal
|
||||
font-family: "\"Comic Sans\"" (label.css:4:20)
|
||||
label visible=1 state=dir-ltr
|
||||
font-family: "\"Comic Sans\"" (reset-to-defaults.css:2:12)
|
19
testsuite/css/style/label.ui
Normal file
19
testsuite/css/style/label.ui
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Hello World!</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user