[gtk+/parser] reftests: Add a test that checks that * matches regions
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/parser] reftests: Add a test that checks that * matches regions
- Date: Sun, 15 May 2011 13:59:10 +0000 (UTC)
commit 7ed05b1f9d66c65ca321eb2a3a60df3a5c1db760
Author: Benjamin Otte <otte redhat com>
Date: Sun May 15 13:20:51 2011 +0200
reftests: Add a test that checks that * matches regions
tests/reftests/Makefile.am | 3 ++
tests/reftests/css-match-region-matches-star.css | 8 +++++
.../reftests/css-match-region-matches-star.ref.ui | 32 ++++++++++++++++++++
tests/reftests/css-match-region-matches-star.ui | 31 +++++++++++++++++++
4 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 2f7e4fb..e6a4d4c 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -34,6 +34,9 @@ EXTRA_DIST += \
css-match-name.css \
css-match-name.ref.ui \
css-match-name.ui \
+ css-match-region-matches-star.css \
+ css-match-region-matches-star.ref.ui \
+ css-match-region-matches-star.ui \
css-match-regions.css \
css-match-regions.ref.ui \
css-match-regions.ui \
diff --git a/tests/reftests/css-match-region-matches-star.css b/tests/reftests/css-match-region-matches-star.css
new file mode 100644
index 0000000..ef6c258
--- /dev/null
+++ b/tests/reftests/css-match-region-matches-star.css
@@ -0,0 +1,8 @@
+GtkNotebook * GtkLabel {
+ color: blue
+}
+
+/* for reference */
+#blue {
+ color: blue
+}
diff --git a/tests/reftests/css-match-region-matches-star.ref.ui b/tests/reftests/css-match-region-matches-star.ref.ui
new file mode 100644
index 0000000..3ee31fb
--- /dev/null
+++ b/tests/reftests/css-match-region-matches-star.ref.ui
@@ -0,0 +1,32 @@
+<?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">Page 1</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">Page 1</property>
+ <property name="name">blue</property>
+ </object>
+ <packing>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/tests/reftests/css-match-region-matches-star.ui b/tests/reftests/css-match-region-matches-star.ui
new file mode 100644
index 0000000..adddba4
--- /dev/null
+++ b/tests/reftests/css-match-region-matches-star.ui
@@ -0,0 +1,31 @@
+<?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">Page 1</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">Page 1</property>
+ </object>
+ <packing>
+ <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]