forked from AuroraMiddleware/gtk
Add some tests for new GtkBuilder syntax
Some valid and invalid examples for <closure>, <lookup> and <constant>.
This commit is contained in:
parent
9c849d2084
commit
fc9462d49e
1
testsuite/gtk/ui/binding1.expected
Normal file
1
testsuite/gtk/ui/binding1.expected
Normal file
@ -0,0 +1 @@
|
||||
SUCCESS
|
7
testsuite/gtk/ui/binding1.ui
Normal file
7
testsuite/gtk/ui/binding1.ui
Normal file
@ -0,0 +1,7 @@
|
||||
<interface>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<constant type="gchararray">bla</constant>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/binding2.expected
Normal file
2
testsuite/gtk/ui/binding2.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: gtk-builder-error-quark 6
|
||||
Could not parse integer 'bla'
|
7
testsuite/gtk/ui/binding2.ui
Normal file
7
testsuite/gtk/ui/binding2.ui
Normal file
@ -0,0 +1,7 @@
|
||||
<interface>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<constant type="gint">bla</constant>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/binding3.expected
Normal file
2
testsuite/gtk/ui/binding3.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: gtk-builder-error-quark 13
|
||||
.:0:0 Object with ID bla not found
|
7
testsuite/gtk/ui/binding3.ui
Normal file
7
testsuite/gtk/ui/binding3.ui
Normal file
@ -0,0 +1,7 @@
|
||||
<interface>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<constant>bla</constant>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
2
testsuite/gtk/ui/binding4.expected
Normal file
2
testsuite/gtk/ui/binding4.expected
Normal file
@ -0,0 +1,2 @@
|
||||
ERROR: gtk-builder-error-quark 6
|
||||
.:4:36 Invalid type 'nosuchtype'
|
7
testsuite/gtk/ui/binding4.ui
Normal file
7
testsuite/gtk/ui/binding4.ui
Normal file
@ -0,0 +1,7 @@
|
||||
<interface>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<constant type="nosuchtype">bla</constant>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
1
testsuite/gtk/ui/binding5.expected
Normal file
1
testsuite/gtk/ui/binding5.expected
Normal file
@ -0,0 +1 @@
|
||||
SUCCESS
|
8
testsuite/gtk/ui/binding5.ui
Normal file
8
testsuite/gtk/ui/binding5.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<interface>
|
||||
<object class="GtkLabel" id="bla"/>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<lookup name="label">bla</lookup>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
1
testsuite/gtk/ui/binding6.expected
Normal file
1
testsuite/gtk/ui/binding6.expected
Normal file
@ -0,0 +1 @@
|
||||
SUCCESS
|
8
testsuite/gtk/ui/binding6.ui
Normal file
8
testsuite/gtk/ui/binding6.ui
Normal file
@ -0,0 +1,8 @@
|
||||
<interface>
|
||||
<object class="GtkLabel" id="bla"/>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<lookup name="label" type="GtkLabel">bla</lookup>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
1
testsuite/gtk/ui/binding7.expected
Normal file
1
testsuite/gtk/ui/binding7.expected
Normal file
@ -0,0 +1 @@
|
||||
SUCCESS
|
10
testsuite/gtk/ui/binding7.ui
Normal file
10
testsuite/gtk/ui/binding7.ui
Normal file
@ -0,0 +1,10 @@
|
||||
<interface>
|
||||
<object class="GtkLabel" id="bla"/>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<lookup name="label">
|
||||
<constant type="GtkLabel">bla</constant>
|
||||
</lookup>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
1
testsuite/gtk/ui/binding8.expected
Normal file
1
testsuite/gtk/ui/binding8.expected
Normal file
@ -0,0 +1 @@
|
||||
SUCCESS
|
11
testsuite/gtk/ui/binding8.ui
Normal file
11
testsuite/gtk/ui/binding8.ui
Normal file
@ -0,0 +1,11 @@
|
||||
<interface>
|
||||
<object class="GtkLabel" id="bla"/>
|
||||
<object class="GtkDropDown">
|
||||
<property name="expression">
|
||||
<closure type='gchararray' function="strcmp">
|
||||
<constant type="gchararray">File size:</constant>
|
||||
<lookup type="GtkLabel" name="max-width-chars">bla</lookup>
|
||||
</closure>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user