[gtk+] reftests: Add a check for matching regions only once



commit b8eac1e130967753396e120042d6f85abf040e83
Author: Benjamin Otte <otte redhat com>
Date:   Sun May 15 02:55:22 2011 +0200

    reftests: Add a check for matching regions only once

 tests/reftests/Makefile.am              |    3 +
 tests/reftests/css-match-regions.css    |   19 ++++++++
 tests/reftests/css-match-regions.ref.ui |   71 +++++++++++++++++++++++++++++++
 tests/reftests/css-match-regions.ui     |   68 +++++++++++++++++++++++++++++
 4 files changed, 161 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 4e1e11c..6ad435c 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -35,6 +35,9 @@ EXTRA_DIST += \
 	css-match-name.css \
 	css-match-name.ref.ui \
 	css-match-name.ui \
+	css-match-regions.css \
+	css-match-regions.ref.ui \
+	css-match-regions.ui \
 	css-match-subtype.css \
 	css-match-subtype.ref.ui \
 	css-match-subtype.ui \
diff --git a/tests/reftests/css-match-regions.css b/tests/reftests/css-match-regions.css
new file mode 100644
index 0000000..901534f
--- /dev/null
+++ b/tests/reftests/css-match-regions.css
@@ -0,0 +1,19 @@
+* {
+  color: blue;
+}
+
+.notebook tab GtkLabel {
+  color: blue
+}
+.notebook tab tab GtkLabel {
+  color: red
+}
+
+/* for reference */
+#blue {
+  color: blue
+}
+
+#red {
+  color: red
+}
diff --git a/tests/reftests/css-match-regions.ref.ui b/tests/reftests/css-match-regions.ref.ui
new file mode 100644
index 0000000..84cce50
--- /dev/null
+++ b/tests/reftests/css-match-regions.ref.ui
@@ -0,0 +1,71 @@
+<?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="GtkNotebook" id="notebook1">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <child>
+          <object class="GtkLabel" id="label4">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Normal</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Blue</property>
+            <property name="name">blue</property>
+          </object>
+          <packing>
+            <property name="tab_fill">False</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label5">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Normal</property>
+          </object>
+          <packing>
+            <property name="position">1</property>
+          </packing>
+        </child>
+        <child type="tab">
+          <object class="GtkNotebook" id="notebook2">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <child>
+              <object class="GtkLabel" id="label3">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes">Blue</property>
+                <property name="name">blue</property>
+              </object>
+            </child>
+            <child type="tab">
+              <object class="GtkLabel" id="label2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes">Red</property>
+                <property name="name">red</property>
+              </object>
+              <packing>
+                <property name="tab_fill">False</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="position">1</property>
+            <property name="tab_fill">False</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/css-match-regions.ui b/tests/reftests/css-match-regions.ui
new file mode 100644
index 0000000..e0abc17
--- /dev/null
+++ b/tests/reftests/css-match-regions.ui
@@ -0,0 +1,68 @@
+<?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="GtkNotebook" id="notebook1">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <child>
+          <object class="GtkLabel" id="label4">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Normal</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Blue</property>
+          </object>
+          <packing>
+            <property name="tab_fill">False</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label5">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Normal</property>
+          </object>
+          <packing>
+            <property name="position">1</property>
+          </packing>
+        </child>
+        <child type="tab">
+          <object class="GtkNotebook" id="notebook2">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <child>
+              <object class="GtkLabel" id="label3">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes">Blue</property>
+              </object>
+            </child>
+            <child type="tab">
+              <object class="GtkLabel" id="label2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes">Red</property>
+              </object>
+              <packing>
+                <property name="tab_fill">False</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="position">1</property>
+            <property name="tab_fill">False</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



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