[gtk+] reftests: Add a test for recent commits
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Add a test for recent commits
- Date: Wed, 14 May 2014 02:59:24 +0000 (UTC)
commit 5e07b80854e2f38278484196ab46cecdd37a51d0
Author: Benjamin Otte <otte redhat com>
Date: Mon May 12 04:51:35 2014 +0200
reftests: Add a test for recent commits
Check that icon-shadow is not affected by -gtk-icon-transform.
testsuite/reftests/Makefile.am | 3 +++
testsuite/reftests/icon-shadow-no-transform.css | 11 +++++++++++
testsuite/reftests/icon-shadow-no-transform.ref.ui | 15 +++++++++++++++
testsuite/reftests/icon-shadow-no-transform.ui | 18 ++++++++++++++++++
4 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am
index c0edc84..bd60fe5 100644
--- a/testsuite/reftests/Makefile.am
+++ b/testsuite/reftests/Makefile.am
@@ -209,6 +209,9 @@ testdata = \
grid-spacing3.css \
grid-spacing3.ref.ui \
grid-spacing3.ui \
+ icon-shadow-no-transform.css \
+ icon-shadow-no-transform.ref.ui \
+ icon-shadow-no-transform.ui \
icon-style-basics.css \
icon-style-basics.ref.ui \
icon-style-basics.ui \
diff --git a/testsuite/reftests/icon-shadow-no-transform.css b/testsuite/reftests/icon-shadow-no-transform.css
new file mode 100644
index 0000000..6631079
--- /dev/null
+++ b/testsuite/reftests/icon-shadow-no-transform.css
@@ -0,0 +1,11 @@
+ import "reset-to-defaults.css";
+
+* {
+ -gtk-icon-source: url("green-20x20.png");
+ -gtk-icon-transform: scale(0.5);
+ icon-shadow: red 1px 1px;
+}
+
+#transformed {
+ -gtk-icon-transform: scale(0.5) rotate(90deg);
+}
diff --git a/testsuite/reftests/icon-shadow-no-transform.ref.ui
b/testsuite/reftests/icon-shadow-no-transform.ref.ui
new file mode 100644
index 0000000..e8329be
--- /dev/null
+++ b/testsuite/reftests/icon-shadow-no-transform.ref.ui
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+ <requires lib="gtk+" version="3.12"/>
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkSpinner" id="spinner1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/testsuite/reftests/icon-shadow-no-transform.ui b/testsuite/reftests/icon-shadow-no-transform.ui
new file mode 100644
index 0000000..c227940
--- /dev/null
+++ b/testsuite/reftests/icon-shadow-no-transform.ui
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+ <requires lib="gtk+" version="3.12"/>
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkSpinner" id="spinner1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <style>
+ <class name="transformed"/>
+ </style>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]