Add some more builder tests

This commit is contained in:
Matthias Clasen 2014-11-03 19:01:57 -05:00
parent ef9ac24e95
commit 824fa0314d
7 changed files with 31 additions and 8 deletions

View File

@ -163,14 +163,13 @@ test_icontheme = \
$(NULL)
test_ui = \
ui/test1.ui \
ui/test1.expected \
ui/test2.ui \
ui/test2.expected \
ui/test3.ui \
ui/test3.expected \
ui/test4.ui \
ui/test4.expected \
ui/test1.ui ui/test1.expected \
ui/test2.ui ui/test2.expected \
ui/test3.ui ui/test3.expected \
ui/test4.ui ui/test4.expected \
ui/test5.ui ui/test5.expected \
ui/test6.ui ui/test6.expected \
ui/test7.ui ui/test7.expected \
$(NULL)
EXTRA_DIST += \

View File

@ -0,0 +1 @@
SUCCESS

View File

@ -0,0 +1,7 @@
<interface>
<object class="GtkBox" id="foo">
</object>
<object class="GtkBox" id="bar">
<property name="visible" bind-source="foo" bind-property="visible" bind-flags="invert-boolean|sync-create"/>
</object>
</interface>

View File

@ -0,0 +1,2 @@
ERROR: gtk-builder-error-quark 8
Duplicate object ID 'foo' on line 5 (previously on line 3)

View File

@ -0,0 +1,6 @@
<interface>
<object class="GtkBox" id="foo">
</object>
<object class="GtkBox" id="foo">
</object>
</interface>

View File

@ -0,0 +1,2 @@
ERROR: gtk-builder-error-quark 4
<input>:4:1 'object' is not a valid tag here

View File

@ -0,0 +1,6 @@
<interface>
<object class="GtkBox">
<object class="GtkBox">
</object>
</object>
</interface>