]> Pileus Git - ~andy/gtk/commitdiff
reftests: Add a test for border-width problems
authorBenjamin Otte <otte@redhat.com>
Sun, 11 Nov 2012 19:26:05 +0000 (20:26 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 11 Nov 2012 19:26:28 +0000 (20:26 +0100)
tests/reftests/Makefile.am
tests/reftests/window-border-width.ref.ui [new file with mode: 0644]
tests/reftests/window-border-width.ui [new file with mode: 0644]

index 1932bbd5dca04b1655e1b65f59c22625b6ed3b54..ab8d81c66553e3c412cc2d30f8cc8fd3d0d766ef 100644 (file)
@@ -248,4 +248,6 @@ EXTRA_DIST += \
        toplevel-vs-popup.ui \
        unresolvable.css \
        unresolvable.ref.ui \
-       unresolvable.ui
+       unresolvable.ui \
+       window-border-width.ref.ui \
+       window-border-width.ui
diff --git a/tests/reftests/window-border-width.ref.ui b/tests/reftests/window-border-width.ref.ui
new file mode 100644 (file)
index 0000000..0d6af7e
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window_information_collection">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox" id="box1">
+        <property name="border-width">20</property>
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Hello World</property>
+            <property name="wrap">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/window-border-width.ui b/tests/reftests/window-border-width.ui
new file mode 100644 (file)
index 0000000..51f1e08
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window_information_collection">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <property name="border-width">20</property>
+    <child>
+      <object class="GtkLabel" id="label1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="label" translatable="yes">Hello World</property>
+        <property name="wrap">True</property>
+      </object>
+    </child>
+  </object>
+</interface>