[gtk+] reftests: Add a reftest checking background-color: transparent



commit 89d16a51239b10abc9b76412c1caefd17bf61285
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 26 22:33:40 2011 +0200

    reftests: Add a reftest checking background-color: transparent

 tests/reftests/Makefile.am                         |    3 +
 tests/reftests/background-color-transparent.css    |    4 ++
 tests/reftests/background-color-transparent.ref.ui |   46 ++++++++++++++++++++
 tests/reftests/background-color-transparent.ui     |   46 ++++++++++++++++++++
 4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 1b790b6..767a469 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -29,6 +29,9 @@ EXTRA_DIST += \
 	background-area.css \
 	background-area.ref.ui \
 	background-area.ui \
+	background-color-transparent.css \
+	background-color-transparent.ref.ui \
+	background-color-transparent.ui \
 	border-color-default.css \
 	border-color-default.ref.ui \
 	border-color-default.ui \
diff --git a/tests/reftests/background-color-transparent.css b/tests/reftests/background-color-transparent.css
new file mode 100644
index 0000000..bddb3c8
--- /dev/null
+++ b/tests/reftests/background-color-transparent.css
@@ -0,0 +1,4 @@
+* { background-image: none; background-color: purple; }
+GtkButton { background-color: blue; }
+.transparent { background-color: transparent; }
+.reference { background-color: purple; }
diff --git a/tests/reftests/background-color-transparent.ref.ui b/tests/reftests/background-color-transparent.ref.ui
new file mode 100644
index 0000000..9db4ae1
--- /dev/null
+++ b/tests/reftests/background-color-transparent.ref.ui
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkButton" id="opaque">
+            <property name="label" translatable="yes">opaque</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>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="transparent">
+            <property name="label" translatable="yes">transparent</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>
+            <style>
+              <class name="reference" />
+            </style>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/background-color-transparent.ui b/tests/reftests/background-color-transparent.ui
new file mode 100644
index 0000000..d2b0c0c
--- /dev/null
+++ b/tests/reftests/background-color-transparent.ui
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkButton" id="opaque">
+            <property name="label" translatable="yes">opaque</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>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="transparent">
+            <property name="label" translatable="yes">transparent</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>
+            <style>
+              <class name="transparent" />
+            </style>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]