diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-10-18 10:41:57 +0800 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-10-18 17:30:20 +0200 |
commit | f8f94ab329b1deb8d315cdb8689203c7bb4d1906 (patch) | |
tree | d02d0a6096f75d849db73c8e3d05da9bd5b1174c /testsuite/tools/simplify-data | |
parent | 896316a9d134cf5a4bbfa1920dbd6de029776907 (diff) | |
download | gtk+-f8f94ab329b1deb8d315cdb8689203c7bb4d1906.tar.gz |
Install tools tests
At the same time, update the expected test output to match
the current tools output, and write diff and ref files in /tmp.
Diffstat (limited to 'testsuite/tools/simplify-data')
-rw-r--r-- | testsuite/tools/simplify-data/test1.expected | 5 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test1.ui | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test2.expected | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test2.ui | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test3.expected | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test3.ui | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test4.expected | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test4.ui | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test5.expected | 9 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test5.ui | 12 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test6.expected | 5 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test6.ui | 6 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test7.expected | 8 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test7.ui | 12 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test8.expected | 11 | ||||
-rw-r--r-- | testsuite/tools/simplify-data/test8.ui | 12 |
16 files changed, 122 insertions, 0 deletions
diff --git a/testsuite/tools/simplify-data/test1.expected b/testsuite/tools/simplify-data/test1.expected new file mode 100644 index 0000000000..de1472e5cd --- /dev/null +++ b/testsuite/tools/simplify-data/test1.expected @@ -0,0 +1,5 @@ +<!-- default property gets stripped --> +<interface> + <object class="GtkWindow"> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test1.ui b/testsuite/tools/simplify-data/test1.ui new file mode 100644 index 0000000000..4f03810de1 --- /dev/null +++ b/testsuite/tools/simplify-data/test1.ui @@ -0,0 +1,6 @@ +<!-- default property gets stripped --> +<interface> + <object class="GtkWindow"> + <property name="visible">False</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test2.expected b/testsuite/tools/simplify-data/test2.expected new file mode 100644 index 0000000000..99fefb9511 --- /dev/null +++ b/testsuite/tools/simplify-data/test2.expected @@ -0,0 +1,6 @@ +<!-- non-default property not stripped --> +<interface> + <object class="GtkWindow"> + <property name="visible">1</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test2.ui b/testsuite/tools/simplify-data/test2.ui new file mode 100644 index 0000000000..20ffe8d3bb --- /dev/null +++ b/testsuite/tools/simplify-data/test2.ui @@ -0,0 +1,6 @@ +<!-- non-default property not stripped --> +<interface> + <object class="GtkWindow"> + <property name="visible">True</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test3.expected b/testsuite/tools/simplify-data/test3.expected new file mode 100644 index 0000000000..6b9c07f163 --- /dev/null +++ b/testsuite/tools/simplify-data/test3.expected @@ -0,0 +1,6 @@ +<!-- translatable property not stripped --> +<interface> + <object class="GtkWindow"> + <property name="visible" translatable="yes">0</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test3.ui b/testsuite/tools/simplify-data/test3.ui new file mode 100644 index 0000000000..2490e7900a --- /dev/null +++ b/testsuite/tools/simplify-data/test3.ui @@ -0,0 +1,6 @@ +<!-- translatable property not stripped --> +<interface> + <object class="GtkWindow"> + <property name="visible" translatable="yes">False</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test4.expected b/testsuite/tools/simplify-data/test4.expected new file mode 100644 index 0000000000..286f1062ec --- /dev/null +++ b/testsuite/tools/simplify-data/test4.expected @@ -0,0 +1,6 @@ +<!-- irrelevant comments and context are stripped --> +<interface> + <object class="GtkWindow"> + <property name="visible">1</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test4.ui b/testsuite/tools/simplify-data/test4.ui new file mode 100644 index 0000000000..eb5b0f0ea6 --- /dev/null +++ b/testsuite/tools/simplify-data/test4.ui @@ -0,0 +1,6 @@ +<!-- irrelevant comments and context are stripped --> +<interface> + <object class="GtkWindow"> + <property name="visible" comments="foo" context="bla">True</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test5.expected b/testsuite/tools/simplify-data/test5.expected new file mode 100644 index 0000000000..1fb898bc0e --- /dev/null +++ b/testsuite/tools/simplify-data/test5.expected @@ -0,0 +1,9 @@ +<!-- placeholders are stripped --> +<interface> + <object class="GtkWindow"> + <child> + <object class="GtkBox"> + </object> + </child> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test5.ui b/testsuite/tools/simplify-data/test5.ui new file mode 100644 index 0000000000..e379abdb2c --- /dev/null +++ b/testsuite/tools/simplify-data/test5.ui @@ -0,0 +1,12 @@ +<!-- placeholders are stripped --> +<interface> + <object class="GtkWindow"> + <child> + <object class="GtkBox"> + <child> + <placeholder/> + </child> + </object> + </child> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test6.expected b/testsuite/tools/simplify-data/test6.expected new file mode 100644 index 0000000000..8d4495b50e --- /dev/null +++ b/testsuite/tools/simplify-data/test6.expected @@ -0,0 +1,5 @@ +<!-- non-canonical property name works --> +<interface> + <object class="GtkWindow"> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test6.ui b/testsuite/tools/simplify-data/test6.ui new file mode 100644 index 0000000000..e4f394dc21 --- /dev/null +++ b/testsuite/tools/simplify-data/test6.ui @@ -0,0 +1,6 @@ +<!-- non-canonical property name works --> +<interface> + <object class="GtkWindow"> + <property name="default_width">-1</property> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test7.expected b/testsuite/tools/simplify-data/test7.expected new file mode 100644 index 0000000000..a75c4d4570 --- /dev/null +++ b/testsuite/tools/simplify-data/test7.expected @@ -0,0 +1,8 @@ +<!-- default child property gets stripped --> +<interface> + <object class="GtkBox"> + <child> + <object class="GtkLabel"/> + </child> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test7.ui b/testsuite/tools/simplify-data/test7.ui new file mode 100644 index 0000000000..52e0da2f4b --- /dev/null +++ b/testsuite/tools/simplify-data/test7.ui @@ -0,0 +1,12 @@ +<!-- default child property gets stripped --> +<interface> + <object class="GtkBox"> + <child> + <object class="GtkLabel"> + </object> + <packing> + <property name="expand">False</property> + </packing> + </child> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test8.expected b/testsuite/tools/simplify-data/test8.expected new file mode 100644 index 0000000000..df3c4077e3 --- /dev/null +++ b/testsuite/tools/simplify-data/test8.expected @@ -0,0 +1,11 @@ +<!-- non-default child property remains --> +<interface> + <object class="GtkBox"> + <child> + <object class="GtkLabel"/> + <packing> + <property name="expand">1</property> + </packing> + </child> + </object> +</interface> diff --git a/testsuite/tools/simplify-data/test8.ui b/testsuite/tools/simplify-data/test8.ui new file mode 100644 index 0000000000..1aec7adfea --- /dev/null +++ b/testsuite/tools/simplify-data/test8.ui @@ -0,0 +1,12 @@ +<!-- non-default child property remains --> +<interface> + <object class="GtkBox"> + <child> + <object class="GtkLabel"> + </object> + <packing> + <property name="expand">True</property> + </packing> + </child> + </object> +</interface> |