summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-31 19:42:18 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-31 19:42:18 +0000
commite64e9cd5204db5bbf3e470741e972decee488d59 (patch)
tree09a17de32003e75a0ca3e3bf24a4d5767714a3cc /testsuite
parent21491d27bb912d9be1b9bed1b1ab216a36064309 (diff)
downloadgtk+-e64e9cd5204db5bbf3e470741e972decee488d59.tar.gz
simplify: Add a testcase for templates
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.expected37
-rw-r--r--testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.ui42
2 files changed, 79 insertions, 0 deletions
diff --git a/testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.expected b/testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.expected
new file mode 100644
index 0000000000..6e41177129
--- /dev/null
+++ b/testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.expected
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="gtk30">
+ <template class="GtkFileChooserDialog" parent="GtkDialog">
+ <property name="role">GtkFileChooserDialog</property>
+ <property name="type-hint">dialog</property>
+ <property name="default-width">600</property>
+ <signal name="response" handler="response_cb" swapped="no"/>
+ <child internal-child="content_area">
+ <object class="GtkBox" id="dialog-vbox1">
+ <property name="visible">0</property>
+ <property name="orientation">vertical</property>
+ <property name="border-width">0</property>
+ <child>
+ <object class="GtkFileChooserWidget" id="widget">
+ <property name="orientation">vertical</property>
+ <signal name="default-size-changed" handler="file_chooser_widget_default_size_changed" swapped="no"/>
+ <signal name="file-activated" handler="file_chooser_widget_file_activated" swapped="no"/>
+ <signal name="response-requested" handler="file_chooser_widget_response_requested" swapped="no"/>
+ <signal name="selection-changed" handler="file_chooser_widget_selection_changed" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox" id="dialog-action_area1">
+ <property name="border-width">6</property>
+ <property name="layout-style">end</property>
+ </object>
+ </child>
+ </template>
+ <object class="GtkSizeGroup" id="buttons">
+ <property name="mode">vertical</property>
+ </object>
+</interface>
diff --git a/testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.ui b/testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.ui
new file mode 100644
index 0000000000..9315717e79
--- /dev/null
+++ b/testsuite/tools/simplify-data-3to4/gtkfilechooserdialog.ui
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="gtk30">
+ <!-- interface-requires gtk+ 3.10 -->
+ <template class="GtkFileChooserDialog" parent="GtkDialog">
+ <property name="role">GtkFileChooserDialog</property>
+ <property name="type-hint">dialog</property>
+ <property name="default-width">600</property>
+ <signal name="response" handler="response_cb" swapped="no"/>
+ <child internal-child="vbox">
+ <object class="GtkBox" id="dialog-vbox1">
+ <property name="orientation">vertical</property>
+ <property name="border-width">0</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox" id="dialog-action_area1">
+ <property name="border-width">6</property>
+ <property name="layout-style">end</property>
+ </object>
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFileChooserWidget" id="widget">
+ <property name="visible">1</property>
+ <property name="orientation">vertical</property>
+ <signal name="default-size-changed" handler="file_chooser_widget_default_size_changed" swapped="no"/>
+ <signal name="file-activated" handler="file_chooser_widget_file_activated" swapped="no"/>
+ <signal name="response-requested" handler="file_chooser_widget_response_requested" swapped="no"/>
+ <signal name="selection-changed" handler="file_chooser_widget_selection_changed" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">1</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </template>
+ <object class="GtkSizeGroup" id="buttons">
+ <property name="mode">vertical</property>
+ </object>
+</interface>