mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Add tests for GtkLevelBar builder parser
This commit is contained in:
parent
afd6621743
commit
f11fedb719
@ -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 += \
|
||||
|
1
testsuite/gtk/ui/levelbar1.expected
Normal file
1
testsuite/gtk/ui/levelbar1.expected
Normal file
@ -0,0 +1 @@
|
||||
SUCCESS
|
8
testsuite/gtk/ui/levelbar1.ui
Normal file
8
testsuite/gtk/ui/levelbar1.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<!-- test all valid levelbar markup -->
|
||||
<interface>
|
||||
<object class="GtkLevelBar">
|
||||
<offsets>
|
||||
<offset name="one" value="1"/>
|
||||
</offsets>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/levelbar2.expected
Normal file
2
testsuite/gtk/ui/levelbar2.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: g-markup-error-quark 6
|
||||
.:5:27 element 'offset' requires attribute 'value'
|
8
testsuite/gtk/ui/levelbar2.ui
Normal file
8
testsuite/gtk/ui/levelbar2.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<!-- missing levelbar attribute -->
|
||||
<interface>
|
||||
<object class="GtkLevelBar">
|
||||
<offsets>
|
||||
<offset name="one"/>
|
||||
</offsets>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/levelbar3.expected
Normal file
2
testsuite/gtk/ui/levelbar3.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: g-markup-error-quark 6
|
||||
.:5:26 element 'offset' requires attribute 'name'
|
8
testsuite/gtk/ui/levelbar3.ui
Normal file
8
testsuite/gtk/ui/levelbar3.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<!-- missing levelbar offset attribute -->
|
||||
<interface>
|
||||
<object class="GtkLevelBar">
|
||||
<offsets>
|
||||
<offset value="1"/>
|
||||
</offsets>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/levelbar4.expected
Normal file
2
testsuite/gtk/ui/levelbar4.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: gtk-builder-error-quark 6
|
||||
.:5:41 Could not parse double `xyzzy'
|
8
testsuite/gtk/ui/levelbar4.ui
Normal file
8
testsuite/gtk/ui/levelbar4.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<!-- invalid levelbar attribute value -->
|
||||
<interface>
|
||||
<object class="GtkLevelBar">
|
||||
<offsets>
|
||||
<offset name="one" value="xyzzy"/>
|
||||
</offsets>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/levelbar5.expected
Normal file
2
testsuite/gtk/ui/levelbar5.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: gtk-builder-error-quark 1
|
||||
.:5:15 Unsupported tag for GtkLevelBar: <warbl>
|
8
testsuite/gtk/ui/levelbar5.ui
Normal file
8
testsuite/gtk/ui/levelbar5.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<!-- invalid element in levelbar markup -->
|
||||
<interface>
|
||||
<object class="GtkLevelBar">
|
||||
<offsets>
|
||||
<warbl/>
|
||||
</offsets>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/levelbar6.expected
Normal file
2
testsuite/gtk/ui/levelbar6.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: gtk-builder-error-quark 1
|
||||
Unhandled tag: <warbl>
|
8
testsuite/gtk/ui/levelbar6.ui
Normal file
8
testsuite/gtk/ui/levelbar6.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<!-- invalid element in levelbar markup -->
|
||||
<interface>
|
||||
<object class="GtkLevelBar">
|
||||
<offsets>
|
||||
</offsets>
|
||||
<warbl/>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user