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:
Cosimo Cecchi 2011-05-26 18:12:00 -04:00 committed by Benjamin Otte
parent e3dd437b67
commit 83a383e4ba
7 changed files with 129 additions and 0 deletions

View File

@ -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 \

View 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;
}

View 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>

View 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>

View 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;
}

View 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>

View 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>