testsuite: Update tools tests

These tests need to test GTK4 ui file syntax.
This commit is contained in:
Matthias Clasen 2020-03-13 15:34:54 -04:00
parent 8fd51d761b
commit 4b71ed3f5e
15 changed files with 28 additions and 68 deletions

View File

@ -1,5 +1,4 @@
<!-- default property gets stripped -->
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
</object>
<object class="GtkWindow"/>
</interface>

View File

@ -1,4 +1,4 @@
<!-- non-default property not stripped -->
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="visible">1</property>

View File

@ -1,4 +1,4 @@
<!-- translatable property not stripped -->
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="visible" translatable="yes">0</property>

View File

@ -1,6 +1,6 @@
<!-- irrelevant comments and context are stripped -->
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="visible">1</property>
<property name="visible" comments="foo" context="bla">1</property>
</object>
</interface>

View File

@ -1,4 +1,4 @@
<!-- irrelevant comments and context are stripped -->
<!-- comments and context are preserved -->
<interface>
<object class="GtkWindow">
<property name="visible" comments="foo" context="bla">True</property>

View File

@ -1,8 +1,11 @@
<!-- placeholders are stripped -->
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<child>
<object class="GtkBox">
<child>
<placeholder/>
</child>
</object>
</child>
</object>

View File

@ -1,4 +1,4 @@
<!-- placeholders are stripped -->
<!-- placeholders are preserved -->
<interface>
<object class="GtkWindow">
<child>

View File

@ -1,5 +1,6 @@
<!-- non-canonical property name works -->
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkWindow">
<property name="default_height">200</property>
</object>
</interface>

View File

@ -2,5 +2,6 @@
<interface>
<object class="GtkWindow">
<property name="default_width">-1</property>
<property name="default_height">200</property>
</object>
</interface>

View File

@ -1,8 +1,12 @@
<!-- default child property gets stripped -->
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkBox">
<object class="GtkGrid">
<child>
<object class="GtkLabel"/>
<object class="GtkLabel">
<layout>
<property name="row-span">2</property>
</layout>
</object>
</child>
</object>
</interface>

View File

@ -1,12 +1,13 @@
<!-- default child property gets stripped -->
<!-- default layout property gets stripped -->
<interface>
<object class="GtkBox">
<object class="GtkGrid">
<child>
<object class="GtkLabel">
<layout>
<property name="column-span">1</property>
<property name="row-span">2</property>
</layout>
</object>
<packing>
<property name="expand">False</property>
</packing>
</child>
</object>
</interface>

View File

@ -1,11 +0,0 @@
<!-- non-default child property remains -->
<interface>
<object class="GtkBox">
<child>
<object class="GtkLabel"/>
<packing>
<property name="expand">1</property>
</packing>
</child>
</object>
</interface>

View File

@ -1,12 +0,0 @@
<!-- non-default child property remains -->
<interface>
<object class="GtkBox">
<child>
<object class="GtkLabel">
</object>
<packing>
<property name="expand">True</property>
</packing>
</child>
</object>
</interface>

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkGrid">
<child>
<object class="GtkLabel">
<layout>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</layout>
</object>
</child>
</object>
</interface>

View File

@ -1,13 +0,0 @@
<!-- non-default child property remains -->
<interface>
<object class="GtkGrid">
<child>
<object class="GtkLabel">
<layout>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</layout>
</object>
</child>
</object>
</interface>