[gtk+/composite-templates] reftests: Add a reftest for the empty iconview



commit b423641dd55abfc1387995d1dd79604919eefa6b
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jun 15 02:48:24 2012 +0200

    reftests: Add a reftest for the empty iconview

 tests/reftests/Makefile.am           |    3 +
 tests/reftests/iconview-empty.css    |    5 +
 tests/reftests/iconview-empty.ref.ui |  272 +++++++++++++++++++++++++++++
 tests/reftests/iconview-empty.ui     |  320 ++++++++++++++++++++++++++++++++++
 4 files changed, 600 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index c3f3743..15ba7eb 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -164,6 +164,9 @@ EXTRA_DIST += \
 	grid-spacing3.css \
 	grid-spacing3.ref.ui \
 	grid-spacing3.ui \
+	iconview-empty.css \
+	iconview-empty.ui \
+	iconview-empty.ref.ui \
 	info-bar-message-types.css \
 	info-bar-message-types.ref.ui \
 	info-bar-message-types.ui \
diff --git a/tests/reftests/iconview-empty.css b/tests/reftests/iconview-empty.css
new file mode 100644
index 0000000..519b8eb
--- /dev/null
+++ b/tests/reftests/iconview-empty.css
@@ -0,0 +1,5 @@
+ import "reset-to-defaults.css";
+
+GtkIconView, GtkImage {
+  background-color: blue;
+}
diff --git a/tests/reftests/iconview-empty.ref.ui b/tests/reftests/iconview-empty.ref.ui
new file mode 100644
index 0000000..d89279a
--- /dev/null
+++ b/tests/reftests/iconview-empty.ref.ui
@@ -0,0 +1,272 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkGrid" id="grid">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="row_spacing">5</property>
+        <property name="column_spacing">5</property>
+        <child>
+          <object class="GtkImage" id="image-0-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </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="GtkImage" id="image-1-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-2-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-3-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-0-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </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>
+        <child>
+          <object class="GtkImage" id="image-1-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-2-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-3-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">0</property>
+            <property name="height-request">0</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-0-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-1-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-2-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-3-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-0-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-1-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-2-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkImage" id="image-3-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="width-request">10</property>
+            <property name="height-request">10</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/iconview-empty.ui b/tests/reftests/iconview-empty.ui
new file mode 100644
index 0000000..d86efb4
--- /dev/null
+++ b/tests/reftests/iconview-empty.ui
@@ -0,0 +1,320 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkGrid" id="grid">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="row_spacing">5</property>
+        <property name="column_spacing">5</property>
+        <child>
+          <object class="GtkIconView" id="iconview-0-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </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="GtkIconView" id="iconview-1-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-2-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-3-0">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-0-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </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>
+        <child>
+          <object class="GtkIconView" id="iconview-1-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-2-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-3-1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">0</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-0-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-1-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-2-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-3-2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">0</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">0</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">2</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-0-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-1-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">-1</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-2-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">0</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">2</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkIconView" id="iconview-3-3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="columns">5</property>
+            <property name="column-spacing">5</property>
+            <property name="halign">center</property>
+            <property name="item-padding">5</property>
+            <property name="margin">5</property>
+            <property name="row-spacing">5</property>
+            <property name="valign">center</property>
+          </object>
+          <packing>
+            <property name="left_attach">3</property>
+            <property name="top_attach">3</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



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