Commit 66ce0b65 authored by Matthias Clasen's avatar Matthias Clasen

Add tests for GtkContainer builder parser

parent aeddf556
<!-- test all valid container attributes -->
<interface>
<object class="GtkBox">
<child>
<object class="GtkLabel" id="widget1"/>
<packing>
<property name="expand" translatable="yes" comments="foo" context="bar">True</property>
</packing>
</child>
<focus-chain>
<widget name="widget1"/>
</focus-chain>
</object>
</interface>
ERROR: g-markup-error-quark 6
.:7:32 element 'property' requires attribute 'name'
<!-- invalid child property attribute -->
<interface>
<object class="GtkBox">
<child>
<object class="GtkLabel" id="widget1"/>
<packing>
<property food="good"/>
</packing>
</child>
</object>
</interface>
ERROR: gtk-builder-error-quark 1
.:7:17 Unsupported tag for GtkContainer: <warbl>
<!-- invalid packing element -->
<interface>
<object class="GtkBox">
<child>
<object class="GtkLabel" id="widget1"/>
<packing>
<warbl/>
</packing>
</child>
</object>
</interface>
ERROR: g-markup-error-quark 6
.:5:16 element 'widget' requires attribute 'name'
<!-- missing focus chain widget name attribute -->
<interface>
<object class="GtkBox">
<focus-chain>
<widget/>
</focus-chain>
</object>
</interface>
ERROR: g-markup-error-quark 6
.:5:28 element 'widget' requires attribute 'name'
<!-- wrong focus chain widget name attribute -->
<interface>
<object class="GtkBox">
<focus-chain>
<widget food="good"/>
</focus-chain>
</object>
</interface>
ERROR: gtk-builder-error-quark 1
.:5:15 Unsupported tag for GtkContainer: <warbl>
<!-- wrong focus chain element -->
<interface>
<object class="GtkBox">
<focus-chain>
<warbl/>
</focus-chain>
</object>
</interface>
ERROR: g-markup-error-quark 4
.:7:1 attribute 'try' invalid for element 'packing'
<!-- invalid container packing attribute -->
<interface>
<object class="GtkBox">
<child>
<object class="GtkLabel" id="widget1"/>
<packing try="this">
</packing>
</child>
</object>
</interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment