[gtk+] reftests: Add a test for matching by subtype



commit 269fe0f3471e027beb8ef28cf1ce762025be120a
Author: Benjamin Otte <otte redhat com>
Date:   Sat May 14 13:36:00 2011 +0200

    reftests: Add a test for matching by subtype

 tests/reftests/Makefile.am              |    3 +++
 tests/reftests/css-match-subtype.css    |   11 +++++++++++
 tests/reftests/css-match-subtype.ref.ui |   15 +++++++++++++++
 tests/reftests/css-match-subtype.ui     |   14 ++++++++++++++
 4 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index d3476de..5e83d08 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -29,6 +29,9 @@ EXTRA_DIST += \
 	box-packing.css \
 	box-packing.ref.ui \
 	box-packing.ui \
+	css-match-subtype.css \
+	css-match-subtype.ref.ui \
+	css-match-subtype.ui \
 	css-match-type.css \
 	css-match-type.ref.ui \
 	css-match-type.ui \
diff --git a/tests/reftests/css-match-subtype.css b/tests/reftests/css-match-subtype.css
new file mode 100644
index 0000000..8671126
--- /dev/null
+++ b/tests/reftests/css-match-subtype.css
@@ -0,0 +1,11 @@
+GtkContainer {
+  engine: none;
+  background-image: none;
+  background-color: green;
+  border-radius: 0;
+  border-style: none;
+}
+
+NotGtkContainer {
+  background-color: red;
+}
diff --git a/tests/reftests/css-match-subtype.ref.ui b/tests/reftests/css-match-subtype.ref.ui
new file mode 100644
index 0000000..d8d31c3
--- /dev/null
+++ b/tests/reftests/css-match-subtype.ref.ui
@@ -0,0 +1,15 @@
+<?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="GtkImage" id="image1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="pixbuf">green-20x20.png</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/css-match-subtype.ui b/tests/reftests/css-match-subtype.ui
new file mode 100644
index 0000000..ee6db3a
--- /dev/null
+++ b/tests/reftests/css-match-subtype.ui
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">20</property>
+    <property name="height_request">20</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <property name="name">window</property>
+    <style>
+      <class name="window" />
+    </style>
+  </object>
+</interface>



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