]> Pileus Git - ~andy/gtk/commitdiff
reftests: Add a reftest checking background-color: transparent
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Sep 2011 20:33:40 +0000 (22:33 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Sep 2011 20:34:20 +0000 (22:34 +0200)
tests/reftests/Makefile.am
tests/reftests/background-color-transparent.css [new file with mode: 0644]
tests/reftests/background-color-transparent.ref.ui [new file with mode: 0644]
tests/reftests/background-color-transparent.ui [new file with mode: 0644]

index 1b790b6d6f1394e2dd9f608ab59bfd85f83d5aa1..767a4692d3db0a351f8746d0f1ff1613c3b41d30 100644 (file)
@@ -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 (file)
index 0000000..bddb3c8
--- /dev/null
@@ -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 (file)
index 0000000..9db4ae1
--- /dev/null
@@ -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 (file)
index 0000000..d2b0c0c
--- /dev/null
@@ -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>