forked from AuroraMiddleware/gtk
reftests: add reftests for border-image with gradient and url sources
https://bugzilla.gnome.org/show_bug.cgi?id=651194
This commit is contained in:
parent
e3dd437b67
commit
83a383e4ba
@ -26,6 +26,12 @@ clean-local:
|
||||
|
||||
EXTRA_DIST += \
|
||||
align-expand.sh \
|
||||
border-image-gradient.css \
|
||||
border-image-gradient.ref.ui \
|
||||
border-image-gradient.ui \
|
||||
border-image-url.css \
|
||||
border-image-url.ref.ui \
|
||||
border-image-url.ui \
|
||||
box-packing.css \
|
||||
box-packing.ref.ui \
|
||||
box-packing.ui \
|
||||
|
20
tests/reftests/border-image-gradient.css
Normal file
20
tests/reftests/border-image-gradient.css
Normal file
@ -0,0 +1,20 @@
|
||||
.button-image {
|
||||
engine: none;
|
||||
|
||||
border-image-source: -gtk-gradient(linear,
|
||||
left top, left bottom,
|
||||
from(green),
|
||||
to(green));
|
||||
border-image-slice: 1;
|
||||
border-image-repeat: stretch;
|
||||
|
||||
border-width: 1 2 2 1;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.button-not-image {
|
||||
border-color: green;
|
||||
border-style: solid;
|
||||
border-width: 1 2 2 1;
|
||||
border-radius: 0;
|
||||
}
|
22
tests/reftests/border-image-gradient.ref.ui
Normal file
22
tests/reftests/border-image-gradient.ref.ui
Normal file
@ -0,0 +1,22 @@
|
||||
<?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">Hello World</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="has_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<style>
|
||||
<class name="button-not-image"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
22
tests/reftests/border-image-gradient.ui
Normal file
22
tests/reftests/border-image-gradient.ui
Normal file
@ -0,0 +1,22 @@
|
||||
<?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">Hello World</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="has_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<style>
|
||||
<class name="button-image"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
15
tests/reftests/border-image-url.css
Normal file
15
tests/reftests/border-image-url.css
Normal file
@ -0,0 +1,15 @@
|
||||
.button-image {
|
||||
engine: none;
|
||||
|
||||
border-image: url("green-20x20.png") 1 stretch;
|
||||
|
||||
border-width: 1 2 2 1;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.button-not-image {
|
||||
border-color: green;
|
||||
border-style: solid;
|
||||
border-width: 1 2 2 1;
|
||||
border-radius: 0;
|
||||
}
|
22
tests/reftests/border-image-url.ref.ui
Normal file
22
tests/reftests/border-image-url.ref.ui
Normal file
@ -0,0 +1,22 @@
|
||||
<?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">Hello World</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="has_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<style>
|
||||
<class name="button-not-image"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
22
tests/reftests/border-image-url.ui
Normal file
22
tests/reftests/border-image-url.ui
Normal file
@ -0,0 +1,22 @@
|
||||
<?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">Hello World</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="has_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<style>
|
||||
<class name="button-image"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user