[gtk+] reftests: Check style property order
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Check style property order
- Date: Wed, 18 May 2011 20:32:36 +0000 (UTC)
commit 25c396409c5254070be59745032a81ab672af3cc
Author: Benjamin Otte <otte redhat com>
Date: Mon May 16 23:52:19 2011 +0200
reftests: Check style property order
Ensure that style properties are read in the correct order, by having a
property twice with vastly different values.
tests/reftests/Makefile.am | 3 +++
tests/reftests/css-match-style-property-order.css | 12 ++++++++++++
.../reftests/css-match-style-property-order.ref.ui | 19 +++++++++++++++++++
tests/reftests/css-match-style-property-order.ui | 19 +++++++++++++++++++
4 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 44d400e..eb80c9a 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -47,6 +47,9 @@ EXTRA_DIST += \
css-match-regions.css \
css-match-regions.ref.ui \
css-match-regions.ui \
+ css-match-style-property-order.css \
+ css-match-style-property-order.ref.ui \
+ css-match-style-property-order.ui \
css-match-subtype.css \
css-match-subtype.ref.ui \
css-match-subtype.ui \
diff --git a/tests/reftests/css-match-style-property-order.css b/tests/reftests/css-match-style-property-order.css
new file mode 100644
index 0000000..f41a725
--- /dev/null
+++ b/tests/reftests/css-match-style-property-order.css
@@ -0,0 +1,12 @@
+* {
+ -GtkWidget-focus-line-width: 0;
+ padding: 0
+}
+
+#test {
+ -GtkWidget-focus-line-width: 20
+}
+
+#reference {
+ padding: 20
+}
diff --git a/tests/reftests/css-match-style-property-order.ref.ui b/tests/reftests/css-match-style-property-order.ref.ui
new file mode 100644
index 0000000..e2e9f66
--- /dev/null
+++ b/tests/reftests/css-match-style-property-order.ref.ui
@@ -0,0 +1,19 @@
+<?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="GtkButton" id="button1">
+ <property name="name">reference</property>
+ <property name="label" translatable="yes">Hello World</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/tests/reftests/css-match-style-property-order.ui b/tests/reftests/css-match-style-property-order.ui
new file mode 100644
index 0000000..8c012dd
--- /dev/null
+++ b/tests/reftests/css-match-style-property-order.ui
@@ -0,0 +1,19 @@
+<?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="GtkButton" id="button1">
+ <property name="name">test</property>
+ <property name="label" translatable="yes">Hello World</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]