mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +00:00
reftests: Check that the default border color is the foreground color
This commit is contained in:
parent
abc239f444
commit
016e0c1a3e
@ -29,6 +29,9 @@ EXTRA_DIST += \
|
||||
background-area.css \
|
||||
background-area.ref.ui \
|
||||
background-area.ui \
|
||||
border-color-default.css \
|
||||
border-color-default.ref.ui \
|
||||
border-color-default.ui \
|
||||
border-image-ball-green.png \
|
||||
border-image-ball-red.png \
|
||||
border-image-ball-yellow.png \
|
||||
|
17
tests/reftests/border-color-default.css
Normal file
17
tests/reftests/border-color-default.css
Normal file
@ -0,0 +1,17 @@
|
||||
* {
|
||||
border-image: none;
|
||||
border-style: solid;
|
||||
border-width: 5;
|
||||
}
|
||||
|
||||
GtkButton {
|
||||
/* using a nonexistant color because that will lead to the default value */
|
||||
border-color: @doesnotexist;
|
||||
color: purple;
|
||||
}
|
||||
|
||||
#reference {
|
||||
border-color: purple;
|
||||
color: purple;
|
||||
}
|
||||
|
17
tests/reftests/border-color-default.ref.ui
Normal file
17
tests/reftests/border-color-default.ref.ui
Normal file
@ -0,0 +1,17 @@
|
||||
<?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="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
16
tests/reftests/border-color-default.ui
Normal file
16
tests/reftests/border-color-default.ui
Normal file
@ -0,0 +1,16 @@
|
||||
<?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="GtkButton" id="button1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user