[gtk+] reftests: Add a test for a parent in a different state
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Add a test for a parent in a different state
- Date: Mon, 9 Jan 2012 17:44:37 +0000 (UTC)
commit 53bb230e122aeb1296a7a9c2d76d94109cd7bb5c
Author: Benjamin Otte <otte redhat com>
Date: Thu Dec 29 22:03:02 2011 +0100
reftests: Add a test for a parent in a different state
inherit in those cases should inherit from that different state, not
from this state.
tests/reftests/Makefile.am | 3 ++
.../reftests/css-match-inherit-different-state.css | 12 +++++++++
.../css-match-inherit-different-state.ref.ui | 26 ++++++++++++++++++++
.../reftests/css-match-inherit-different-state.ui | 25 +++++++++++++++++++
4 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 1175e24..d53cf5a 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -85,6 +85,9 @@ EXTRA_DIST += \
css-match-inherit.css \
css-match-inherit.ref.ui \
css-match-inherit.ui \
+ css-match-inherit-different-state.css \
+ css-match-inherit-different-state.ref.ui \
+ css-match-inherit-different-state.ui \
css-match-name.css \
css-match-name.ref.ui \
css-match-name.ui \
diff --git a/tests/reftests/css-match-inherit-different-state.css b/tests/reftests/css-match-inherit-different-state.css
new file mode 100644
index 0000000..841d64a
--- /dev/null
+++ b/tests/reftests/css-match-inherit-different-state.css
@@ -0,0 +1,12 @@
+*,
+#reference {
+ color: green;
+}
+
+:insensitive {
+ color: red;
+}
+
+GtkLabel:insensitive {
+ color: inherit;
+}
diff --git a/tests/reftests/css-match-inherit-different-state.ref.ui b/tests/reftests/css-match-inherit-different-state.ref.ui
new file mode 100644
index 0000000..eadce22
--- /dev/null
+++ b/tests/reftests/css-match-inherit-different-state.ref.ui
@@ -0,0 +1,26 @@
+<?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="use_action_appearance">False</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>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="name">reference</property>
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">I should be green</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/tests/reftests/css-match-inherit-different-state.ui b/tests/reftests/css-match-inherit-different-state.ui
new file mode 100644
index 0000000..df4a151
--- /dev/null
+++ b/tests/reftests/css-match-inherit-different-state.ui
@@ -0,0 +1,25 @@
+<?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="use_action_appearance">False</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>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">I should be green</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]