This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GSettings: enum/choices/aliases/range test cases
Fix a small bug that one of the tests uncovered.
- Loading branch information
1 parent
be8f938
commit fc53889
Showing
29 changed files
with
368 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,4 @@ test.mo | |
unix-fd | ||
unix-streams | ||
utf8-input-streamgdbus-addresses | ||
org.gtk.test.enums.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<default>'how'</default> | ||
<choices> | ||
<choice value='who'/> | ||
<choice value='what'/> | ||
<choice value='where'/> | ||
<choice value='when'/> | ||
<choice value='why'/> | ||
</choices> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<aliases/> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<choices> | ||
<choice value='before'/> | ||
<choice value='after'/> | ||
</choices> | ||
<aliases> | ||
<alias value='pre' target='before'/> | ||
<alias value='post' target='after'/> | ||
</aliases> | ||
<default>'after'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<choices> | ||
<choice value='who'/> | ||
<choice value='what'/> | ||
<choice value='where'/> | ||
<choice value='when'/> | ||
<choice value='why'/> | ||
</choices> | ||
<default>'how'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='i'> | ||
<choices/> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<choices> | ||
<choice value='before'/> | ||
<choice value='after'/> | ||
</choices> | ||
<aliases> | ||
<alias value='pre' target='befor'/> | ||
<alias value='post' target='after'/> | ||
</aliases> | ||
<default>'after'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<choices> | ||
<choice value='before'/> | ||
<choice value='after'/> | ||
</choices> | ||
<aliases> | ||
<alias value='before' target='after'/> | ||
</aliases> | ||
<default>'after'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<choices> | ||
<choice value='who'/> | ||
<choice value='what'/> | ||
<choice value='where'/> | ||
<choice value='when'/> | ||
<choice value='why'/> | ||
</choices> | ||
<default>'who'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<default>'who'</default> | ||
<choices> | ||
<choice value='who'/> | ||
<choice value='what'/> | ||
<choice value='where'/> | ||
<choice value='when'/> | ||
<choice value='why'/> | ||
</choices> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<choices> | ||
<choice value='before'/> | ||
<choice value='after'/> | ||
</choices> | ||
<aliases> | ||
<alias value='pre' target='before'/> | ||
<alias value='post' target='after'/> | ||
</aliases> | ||
<default>'pre'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'spam'</default> | ||
|
||
<aliases> | ||
<alias value='sausages' target='bangers'/> | ||
</aliases> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'nie'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
21 changes: 21 additions & 0 deletions
21
gio/tests/schema-tests/enum-with-chained-alias.gschema.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'spam'</default> | ||
|
||
<aliases> | ||
<alias value='sausages' target='bangers'/> | ||
<alias value='wurst' target='sausages'/> | ||
</aliases> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'spam'</default> | ||
<choices/> | ||
</key> | ||
</schema> | ||
</schemalist> |
20 changes: 20 additions & 0 deletions
20
gio/tests/schema-tests/enum-with-invalid-alias.gschema.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'spam'</default> | ||
|
||
<aliases> | ||
<alias value='sausages' target='banger'/> | ||
</aliases> | ||
</key> | ||
</schema> | ||
</schemalist> |
21 changes: 21 additions & 0 deletions
21
gio/tests/schema-tests/enum-with-repeated-alias.gschema.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'spam'</default> | ||
|
||
<aliases> | ||
<alias value='sausages' target='bangers'/> | ||
<alias value='sausages' target='mash'/> | ||
</aliases> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'spam'</default> | ||
|
||
<aliases> | ||
<alias value='mash' target='bangers'/> | ||
</aliases> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<schemalist> | ||
<enum id='org.gtk.test.MyEnum'> | ||
<value nick='nospam' value='0'/> | ||
<value nick='spam' value='1'/> | ||
<value nick='ham' value='2'/> | ||
<value nick='eggs' value='3'/> | ||
<value nick='bangers' value='4'/> | ||
<value nick='mash' value='5'/> | ||
</enum> | ||
|
||
<schema id='org.gtk.test.schema'> | ||
<key name='test' enum='org.gtk.test.MyEnum'> | ||
<default>'spam'</default> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<schemalist> | ||
<schema id='org.gtk.test.schema'> | ||
<key name='test' type='s'> | ||
<range min='22' max='27'/> | ||
</key> | ||
</schema> | ||
</schemalist> |
Oops, something went wrong.