[gtk+/parser] reftests: Check that inherited properties work



commit 2967531636753d31936ce75d4dc94ee12579ec94
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 c1aa9a1..d0d4ff5 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -37,6 +37,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]