[banshee/gtk3] build: add new array test for GSettingsSchemaExtractor
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gtk3] build: add new array test for GSettingsSchemaExtractor
- Date: Tue, 18 Dec 2012 19:21:47 +0000 (UTC)
commit ed08c47da7ac3012965a8dfccbfdacb8cfebd4b1
Author: Andres G. Aragoneses <knocte gmail com>
Date: Tue Dec 18 19:16:04 2012 +0000
build: add new array test for GSettingsSchemaExtractor
It doesn't pass yet.
build/GSettingsSchemaExtractorTests.cs | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/build/GSettingsSchemaExtractorTests.cs b/build/GSettingsSchemaExtractorTests.cs
index c0fb723..eca7490 100644
--- a/build/GSettingsSchemaExtractorTests.cs
+++ b/build/GSettingsSchemaExtractorTests.cs
@@ -149,6 +149,34 @@ namespace GSettingsSchemaExtractor
</schemalist>"
.Trim ()));
}
+
+ internal class ArrayType {
+ public static readonly SchemaEntry<string[]> CurrentFiltersSchema = new SchemaEntry<string[]> (
+ "sources.fsq", "current_filters",
+ new string[] { "album", "artist" },
+ null,
+ null
+ );
+ }
+
+ [Test]
+ public void SchemaWithArray ()
+ {
+ StringBuilder result = GSettingsSchemaExtractorProgram.Extract (new Type [] { typeof (ArrayType) });
+
+ Assert.That (result, Is.Not.Null);
+ Assert.That (result.ToString ().Trim (), Is.EqualTo (@"
+<schemalist>
+ <schema id=""org.gnome.banshee.sources.fsq"" path=""/apps/banshee/sources/fsq/"">
+ <key name=""current_filters"" type=""as"">
+ <default>['album','artist']</default>
+ <_summary></_summary>
+ <_description></_description>
+ </key>
+ </schema>
+</schemalist>"
+ .Trim ()));
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]