[gtk+] reftests: add reftests for border-image with gradient and url sources
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: add reftests for border-image with gradient and url sources
- Date: Thu, 9 Jun 2011 04:24:12 +0000 (UTC)
commit 83a383e4bab9688ea856140e1d18e8007afeb8af
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu May 26 18:12:00 2011 -0400
reftests: add reftests for border-image with gradient and url sources
https://bugzilla.gnome.org/show_bug.cgi?id=651194
tests/reftests/Makefile.am | 6 ++++++
tests/reftests/border-image-gradient.css | 20 ++++++++++++++++++++
tests/reftests/border-image-gradient.ref.ui | 22 ++++++++++++++++++++++
tests/reftests/border-image-gradient.ui | 22 ++++++++++++++++++++++
tests/reftests/border-image-url.css | 15 +++++++++++++++
tests/reftests/border-image-url.ref.ui | 22 ++++++++++++++++++++++
tests/reftests/border-image-url.ui | 22 ++++++++++++++++++++++
7 files changed, 129 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 18fead9..3092be2 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -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 \
diff --git a/tests/reftests/border-image-gradient.css b/tests/reftests/border-image-gradient.css
new file mode 100644
index 0000000..8800132
--- /dev/null
+++ b/tests/reftests/border-image-gradient.css
@@ -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;
+}
diff --git a/tests/reftests/border-image-gradient.ref.ui b/tests/reftests/border-image-gradient.ref.ui
new file mode 100644
index 0000000..acc9280
--- /dev/null
+++ b/tests/reftests/border-image-gradient.ref.ui
@@ -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>
diff --git a/tests/reftests/border-image-gradient.ui b/tests/reftests/border-image-gradient.ui
new file mode 100644
index 0000000..eb275fd
--- /dev/null
+++ b/tests/reftests/border-image-gradient.ui
@@ -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>
diff --git a/tests/reftests/border-image-url.css b/tests/reftests/border-image-url.css
new file mode 100644
index 0000000..a5b4195
--- /dev/null
+++ b/tests/reftests/border-image-url.css
@@ -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;
+}
diff --git a/tests/reftests/border-image-url.ref.ui b/tests/reftests/border-image-url.ref.ui
new file mode 100644
index 0000000..acc9280
--- /dev/null
+++ b/tests/reftests/border-image-url.ref.ui
@@ -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>
diff --git a/tests/reftests/border-image-url.ui b/tests/reftests/border-image-url.ui
new file mode 100644
index 0000000..eb275fd
--- /dev/null
+++ b/tests/reftests/border-image-url.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]