[gtk+] reftests: Add a test that checks that * matches regions
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Add a test that checks that * matches regions
- Date: Wed, 18 May 2011 20:31:30 +0000 (UTC)
commit 806c80427128915feec5e0035758c820a9c1c6d1
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 6ad435c..ab86b85 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-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]