mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
reftests: Add background-area reftest
Checks the fix from last commit: background area is supposed to be the border box.
This commit is contained in:
parent
c56700ca30
commit
281ce813fc
@ -26,6 +26,9 @@ clean-local:
|
||||
|
||||
EXTRA_DIST += \
|
||||
align-expand.sh \
|
||||
background-area.css \
|
||||
background-area.ref.ui \
|
||||
background-area.ui \
|
||||
border-image-ball-green.png \
|
||||
border-image-ball-red.png \
|
||||
border-image-ball-yellow.png \
|
||||
|
19
tests/reftests/background-area.css
Normal file
19
tests/reftests/background-area.css
Normal file
@ -0,0 +1,19 @@
|
||||
* {
|
||||
engine: none;
|
||||
border-radius: 0;
|
||||
border-style: none;
|
||||
border-image: none;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
GtkButton {
|
||||
background-color: green;
|
||||
border-style: solid;
|
||||
border-color: rgba(255,0,0,0.6);
|
||||
border-width: 4;
|
||||
}
|
||||
|
||||
#reference {
|
||||
border-color: rgb(153,102,0);
|
||||
}
|
||||
|
19
tests/reftests/background-area.ref.ui
Normal file
19
tests/reftests/background-area.ref.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="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Make sure that the background
|
||||
area contains the border.</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>
|
18
tests/reftests/background-area.ui
Normal file
18
tests/reftests/background-area.ui
Normal file
@ -0,0 +1,18 @@
|
||||
<?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="label" translatable="yes">Make sure that the background
|
||||
area contains the border.</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>
|
Loading…
Reference in New Issue
Block a user