GtkContainer: Add a test for 'invalid ID'

...and add all the container tests to Makefile.am
This commit is contained in:
Matthias Clasen 2015-04-27 23:01:46 -04:00
parent 83245abfea
commit 86ca248c99
3 changed files with 24 additions and 0 deletions

View File

@ -185,6 +185,14 @@ test_ui = \
ui/celllayout5.ui ui/celllayout5.expected \
ui/celllayout6.ui ui/celllayout6.expected \
ui/celllayout7.ui ui/celllayout7.expected \
ui/container1.ui ui/container1.expected \
ui/container2.ui ui/container2.expected \
ui/container3.ui ui/container3.expected \
ui/container4.ui ui/container4.expected \
ui/container5.ui ui/container5.expected \
ui/container6.ui ui/container6.expected \
ui/container7.ui ui/container7.expected \
ui/container8.ui ui/container8.expected \
ui/scale1.ui ui/scale1.expected \
ui/scale2.ui ui/scale2.expected \
ui/scale3.ui ui/scale3.expected \

View File

@ -0,0 +1,2 @@
ERROR: gtk-builder-error-quark 13
.:11:29 Object with ID xyzzy not found

View File

@ -0,0 +1,14 @@
<!-- test invalid id in container markup -->
<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="xyzzy"/>
</focus-chain>
</object>
</interface>