]> Pileus Git - ~andy/gtk/commitdiff
reftests: Add a test for the label fix
authorBenjamin Otte <otte@redhat.com>
Thu, 12 May 2011 21:38:41 +0000 (23:38 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 12 May 2011 21:40:26 +0000 (23:40 +0200)
tests/reftests/Makefile.am
tests/reftests/rotated-layout.ref.ui [new file with mode: 0644]
tests/reftests/rotated-layout.ui [new file with mode: 0644]

index 89b7a40f87c490a69e53d4d901fb238364b5edbc..fe8c390e73e37f78275d53ac8329d73579c904e5 100644 (file)
@@ -54,6 +54,8 @@ EXTRA_DIST += \
        paned-undersized.ui \
        quit-mnemonic.ref.ui \
        quit-mnemonic.ui \
+       rotated-layout.ref.ui \
+       rotated-layout.ui \
        simple.ref.ui \
        simple.ui \
        toplevel-vs-popup.ref.ui \
diff --git a/tests/reftests/rotated-layout.ref.ui b/tests/reftests/rotated-layout.ref.ui
new file mode 100644 (file)
index 0000000..b4b2b8b
--- /dev/null
@@ -0,0 +1,41 @@
+<?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="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkLabel" id="label2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">label</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="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">label</property>
+            <property name="angle">90</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>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/rotated-layout.ui b/tests/reftests/rotated-layout.ui
new file mode 100644 (file)
index 0000000..48df67f
--- /dev/null
@@ -0,0 +1,41 @@
+<?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="GtkGrid" id="grid1">
+        <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">label</property>
+            <property name="angle">90</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="GtkLabel" id="label2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">label</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>
+      </object>
+    </child>
+  </object>
+</interface>