Add some more cases to the app-id unit tests
[glib.git] / gio / tests / org.gtk.test.gschema.xml.orig
blobc07558335b6b3cf1428fb59ce81ffcdd837f7ce7
1 <schemalist>
3   <schema id="org.gtk.test" path="/tests/" gettext-domain="test">
4     <key name="greeting" type="s">
5       <default l10n="messages">"Hello, earthlings"</default>
6       <summary>A greeting</summary>
7       <description>
8          Greeting of the invading martians
9       </description>
10     </key>
11     <key name="farewell" type="s">
12       <default l10n="messages">"So long"</default>
13     </key>
15     <child name='basic-types' schema='org.gtk.test.basic-types'/>
16     <child name='complex-types' schema='org.gtk.test.complex-types'/>
17     <child name='localized' schema='org.gtk.test.localized'/>
18   </schema>
20   <schema id="org.gtk.test.no-path">
21     <key name="test-boolean" type="b">
22       <default>true</default>
23     </key>
24   </schema>
26   <schema id="org.gtk.test.basic-types" path="/tests/basic-types/">
27     <key name="test-boolean" type="b">
28       <default>true</default>
29     </key>
30     <key name="test-byte" type="y">
31       <default>25</default>
32     </key>
33     <key name="test-int16" type="n">
34       <default>-1234</default>
35     </key>
36     <key name="test-uint16" type="q">
37       <default>1234</default>
38     </key>
39     <key name="test-int32" type="i">
40       <default>-123456</default>
41     </key>
42     <key name="test-uint32" type="u">
43       <default>123456</default>
44     </key>
45     <key name="test-int64" type="x">
46       <default>-123456789</default>
47     </key>
48     <key name="test-uint64" type="t">
49       <default>123456789</default>
50     </key>
51     <key name="test-double" type="d">
52       <default>123.456</default>
53     </key>
54     <key name="test-string" type="s">
55       <default>"a string, it seems"</default>
56     </key>
57     <key name="test-objectpath" type="o">
58       <default>"/a/object/path"</default>
59     </key>
60   </schema>
62   <schema id="org.gtk.test.complex-types" path="/tests/complex-types/">
63     <key name="test-tuple" type="(s(ii))">
64       <default>("one",(2,3))</default>
65     </key>
66     <key name="test-array" type="ai">
67       <default>[0,1,2,3,4,5]</default>
68     </key>
69     <key name="test-dict" type="a{sau}">
70       <default>
71       {
72         "AC": [0,0, 0,0,0,0,0,0],
73         "IV": [0,0, 0,0,0,0,0,0]
74       }
75       </default>
76     </key>
77   </schema>
79   <schema id="org.gtk.test.localized" path="/tests/localized/" gettext-domain="test">
80     <key name="error-message" type="s">
81       <default l10n="messages">"Unnamed"</default>
82     </key>
83     <key name="backspace" type="s">
84       <default l10n="messages" context="keyboard label">"BackSpace"</default>
85     </key>
86   </schema>
88   <schema id="org.gtk.test.binding" path="/tests/binding/">
89     <key name="bool" type="b">
90       <default>false</default>
91     </key>
92     <key name="anti-bool" type="b">
93       <default>false</default>
94     </key>
95     <key name="byte" type="y">
96       <default>0</default>
97     </key>
98     <key name="int16" type="n">
99       <default>0</default>
100     </key>
101     <key name="uint16" type="q">
102       <default>0</default>
103     </key>
104     <key name="int" type="i">
105       <default>0</default>
106     </key>
107     <key name="uint" type="u">
108       <default>0</default>
109     </key>
110     <key name="int64" type="x">
111       <default>0</default>
112     </key>
113     <key name="uint64" type="t">
114       <default>0</default>
115     </key>
116     <key name="double" type="d">
117       <default>0</default>
118     </key>
119     <key name="string" type="s">
120       <default>""</default>
121     </key>
122     <key name="chararray" type="ay">
123       <default>[48, 49]</default>
124     </key>
125     <key name="strv" type="as">
126       <default>[]</default>
127     </key>
128     <key name="enum" enum="org.gtk.test.TestEnum">
129       <default>'foo'</default>
130     </key>
131     <key name="flags" flags="org.gtk.test.TestFlags">
132       <default>['mourning', 'laughing']</default>
133     </key>
134   </schema>
136   <schema id='org.gtk.test.enums' path='/tests/enums/'>
137     <key name='test' enum='org.gtk.test.TestEnum'>
138       <default>'bar'</default>
139       <aliases>
140         <alias value='qux' target='quux'/>
141       </aliases>
142     </key>
143     <key name='f-test' flags='org.gtk.test.TestFlags'>
144       <default>[]</default>
145       <aliases>
146         <alias value='speaking' target='talking'/>
147       </aliases>
148     </key>
149   </schema>
151   <schema id='org.gtk.test.enums.direct' path='/tests/enums/'>
152     <key name='f-test' type='as'>
153       <default>[]</default>
154     </key>
155     <key name='test' type='s'>
156       <default>'bar'</default>
157     </key>
158   </schema>
160   <schema id='org.gtk.test.range' path='/tests/range/'>
161     <key name='val' type='i'>
162       <default>33</default>
163       <range min='2' max='44'/>
164     </key>
165   </schema>
167   <schema id='org.gtk.test.range.direct' path='/tests/range/'>
168     <key name='val' type='i'>
169       <default>33</default>
170     </key>
171   </schema>
173   <schema id='org.gtk.test.mapped' path='/tests/mapped/'>
174     <key name='val' type='i'>
175       <default>0</default>
176     </key>
177   </schema>
179   <schema id="org.gtk.test.descriptions" path="/a/">
180     <key name='a' type='i'>
181       <summary>
182         a paragraph.
184         with some whitespace.
185          
186         because not everyone has a great editor.
188           
191         lots of space is            as one.    
192       </summary>
193       <default>0</default>
194     </key>
195   </schema>
197   <schema id='org.gtk.test.extends.base'>
198     <key name='int32' type='i'>
199       <default>0</default>
200     </key>
201     <key name='string' type='s'>
202       <default>''</default>
203     </key>
204   </schema>
205   <schema id='org.gtk.test.extends.extended' extends='org.gtk.test.extends.base'>
206     <override name="int32">42</override>
207     <key name='another-int32' type='i'>
208       <default>0</default>
209     </key>
210   </schema>
212 </schemalist>