[gtk+/parser] reftests: Add test to check that matching by type works



commit 70d21913d4d0ed002bd6caa5974cfd1f28d733fe
Author: Benjamin Otte <otte redhat com>
Date:   Sat May 14 13:35:19 2011 +0200

    reftests: Add test to check that matching by type works

 tests/reftests/Makefile.am           |    3 +++
 tests/reftests/css-match-type.css    |   11 +++++++++++
 tests/reftests/css-match-type.ref.ui |   15 +++++++++++++++
 tests/reftests/css-match-type.ui     |   14 ++++++++++++++
 4 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index af9d6a2..fd9d1b8 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -28,6 +28,9 @@ EXTRA_DIST += \
 	box-packing.css \
 	box-packing.ref.ui \
 	box-packing.ui \
+	css-match-type.css \
+	css-match-type.ref.ui \
+	css-match-type.ui \
 	entry-progress-coloring.css \
 	entry-progress-coloring.ref.ui \
 	entry-progress-coloring.ui \
diff --git a/tests/reftests/css-match-type.css b/tests/reftests/css-match-type.css
new file mode 100644
index 0000000..d2abe6f
--- /dev/null
+++ b/tests/reftests/css-match-type.css
@@ -0,0 +1,11 @@
+GtkWindow {
+  engine: none;
+  background-image: none;
+  background-color: green;
+  border-radius: 0;
+  border-style: none;
+}
+
+NotGtkWindow {
+  background-color: red;
+}
diff --git a/tests/reftests/css-match-type.ref.ui b/tests/reftests/css-match-type.ref.ui
new file mode 100644
index 0000000..d8d31c3
--- /dev/null
+++ b/tests/reftests/css-match-type.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-type.ui b/tests/reftests/css-match-type.ui
new file mode 100644
index 0000000..ee6db3a
--- /dev/null
+++ b/tests/reftests/css-match-type.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]