[gtk+] reftests: Check that inherited properties work



commit d392af2e36a95c447994230afa264b9cc253e308
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed May 18 18:43:10 2011 +0200

    reftests: Check that inherited properties work

 tests/reftests/Makefile.am              |    3 +++
 tests/reftests/css-match-inherit.css    |   11 +++++++++++
 tests/reftests/css-match-inherit.ref.ui |   22 ++++++++++++++++++++++
 tests/reftests/css-match-inherit.ui     |   19 +++++++++++++++++++
 4 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index eb80c9a..bf329e5 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -38,6 +38,9 @@ EXTRA_DIST += \
 	css-match-exact.css \
 	css-match-exact.ref.ui \
 	css-match-exact.ui \
+	css-match-inherit.css \
+	css-match-inherit.ref.ui \
+	css-match-inherit.ui \
 	css-match-name.css \
 	css-match-name.ref.ui \
 	css-match-name.ui \
diff --git a/tests/reftests/css-match-inherit.css b/tests/reftests/css-match-inherit.css
new file mode 100644
index 0000000..b96a01a
--- /dev/null
+++ b/tests/reftests/css-match-inherit.css
@@ -0,0 +1,11 @@
+* {
+  engine: none;
+}
+
+GtkButton {
+  color: red;
+}
+
+.testinherit * {
+  color: red;
+}
diff --git a/tests/reftests/css-match-inherit.ref.ui b/tests/reftests/css-match-inherit.ref.ui
new file mode 100644
index 0000000..a1e70d9
--- /dev/null
+++ b/tests/reftests/css-match-inherit.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="testinherit"/>
+        </style>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/css-match-inherit.ui b/tests/reftests/css-match-inherit.ui
new file mode 100644
index 0000000..e2e9f66
--- /dev/null
+++ b/tests/reftests/css-match-inherit.ui
@@ -0,0 +1,19 @@
+<?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>
+      </object>
+    </child>
+  </object>
+</interface>



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