[gtk+] reftests: Add test for box brokenness



commit ba76f545499343fc4d869515d5d065a8364a6854
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Jul 2 01:57:27 2011 +0200

    reftests: Add test for box brokenness
    
    This is a tests for the last commit.

 tests/reftests/Makefile.am                       |    3 +
 tests/reftests/style-properties-nth-child.css    |   11 ++++
 tests/reftests/style-properties-nth-child.ref.ui |   71 ++++++++++++++++++++++
 tests/reftests/style-properties-nth-child.ui     |   70 +++++++++++++++++++++
 4 files changed, 155 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 625c56f..0d4c19d 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -139,6 +139,9 @@ EXTRA_DIST += \
 	shorthand-entry-border.ui \
 	simple.ref.ui \
 	simple.ui \
+	style-properties-nth-child.css \
+	style-properties-nth-child.ref.ui \
+	style-properties-nth-child.ui \
 	toplevel-vs-popup.ref.ui \
 	toplevel-vs-popup.ui \
 	unresolvable.css \
diff --git a/tests/reftests/style-properties-nth-child.css b/tests/reftests/style-properties-nth-child.css
new file mode 100644
index 0000000..d3d406c
--- /dev/null
+++ b/tests/reftests/style-properties-nth-child.css
@@ -0,0 +1,11 @@
+* {
+  -GtkToolbar-button-relief: none;
+}
+
+.grid-toolbar {
+    -GtkToolbar-button-relief: normal;
+}
+
+.box-toolbar {
+    -GtkToolbar-button-relief: normal;
+}
diff --git a/tests/reftests/style-properties-nth-child.ref.ui b/tests/reftests/style-properties-nth-child.ref.ui
new file mode 100644
index 0000000..2cf5d5f
--- /dev/null
+++ b/tests/reftests/style-properties-nth-child.ref.ui
@@ -0,0 +1,71 @@
+<?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>
+    <property name="width_request">300</property>
+    <property name="height_request">300</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkScrolledWindow" id="scrolledwindow1">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="hexpand">True</property>
+            <property name="shadow_type">in</property>
+            <child>
+              <placeholder/>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkToolbar" id="toolbar1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <style>
+              <class name="grid-toolbar"/>
+            </style>
+            <child>
+              <object class="GtkToolButton" id="add_button">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkToolButton" id="add_button2">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/style-properties-nth-child.ui b/tests/reftests/style-properties-nth-child.ui
new file mode 100644
index 0000000..fe6aaed
--- /dev/null
+++ b/tests/reftests/style-properties-nth-child.ui
@@ -0,0 +1,70 @@
+<?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>
+    <property name="width_request">300</property>
+    <property name="height_request">300</property>
+    <child>
+      <object class="GtkBox" id="box1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkScrolledWindow" id="scrolledwindow1">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="hexpand">True</property>
+            <property name="shadow_type">in</property>
+            <child>
+              <placeholder/>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkToolbar" id="toolbar1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <style>
+              <class name="box-toolbar"/>
+            </style>
+            <child>
+              <object class="GtkToolButton" id="add_button">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkToolButton" id="add_button2">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



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