Commit f11fedb7 authored by Matthias Clasen's avatar Matthias Clasen

Add tests for GtkLevelBar builder parser

parent afd66217
......@@ -192,6 +192,12 @@ test_ui = \
ui/scale5.ui ui/scale5.expected \
ui/scale6.ui ui/scale6.expected \
ui/scale7.ui ui/scale7.expected \
ui/levelbar1.ui ui/levelbar1.expected \
ui/levelbar2.ui ui/levelbar2.expected \
ui/levelbar3.ui ui/levelbar3.expected \
ui/levelbar4.ui ui/levelbar4.expected \
ui/levelbar5.ui ui/levelbar5.expected \
ui/levelbar6.ui ui/levelbar6.expected \
$(NULL)
EXTRA_DIST += \
......
<!-- test all valid levelbar markup -->
<interface>
<object class="GtkLevelBar">
<offsets>
<offset name="one" value="1"/>
</offsets>
</object>
</interface>
ERROR: g-markup-error-quark 6
.:5:27 element 'offset' requires attribute 'value'
<!-- missing levelbar attribute -->
<interface>
<object class="GtkLevelBar">
<offsets>
<offset name="one"/>
</offsets>
</object>
</interface>
ERROR: g-markup-error-quark 6
.:5:26 element 'offset' requires attribute 'name'
<!-- missing levelbar offset attribute -->
<interface>
<object class="GtkLevelBar">
<offsets>
<offset value="1"/>
</offsets>
</object>
</interface>
ERROR: gtk-builder-error-quark 6
.:5:41 Could not parse double `xyzzy'
<!-- invalid levelbar attribute value -->
<interface>
<object class="GtkLevelBar">
<offsets>
<offset name="one" value="xyzzy"/>
</offsets>
</object>
</interface>
ERROR: gtk-builder-error-quark 1
.:5:15 Unsupported tag for GtkLevelBar: <warbl>
<!-- invalid element in levelbar markup -->
<interface>
<object class="GtkLevelBar">
<offsets>
<warbl/>
</offsets>
</object>
</interface>
ERROR: gtk-builder-error-quark 1
Unhandled tag: <warbl>
<!-- invalid element in levelbar markup -->
<interface>
<object class="GtkLevelBar">
<offsets>
</offsets>
<warbl/>
</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