[glib/glib-2-30] Add a test for CDATA in gschema.xml files
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-30] Add a test for CDATA in gschema.xml files
- Date: Fri, 11 Nov 2011 21:22:55 +0000 (UTC)
commit 4cae0cdc34b60e79956ef3a986eb167061a3bab2
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 7 00:14:28 2011 -0500
Add a test for CDATA in gschema.xml files
gio/tests/gschema-compile.c | 3 ++-
gio/tests/schema-tests/cdata.gschema.xml | 7 +++++++
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gschema-compile.c b/gio/tests/gschema-compile.c
index ee40974..737ffb9 100644
--- a/gio/tests/gschema-compile.c
+++ b/gio/tests/gschema-compile.c
@@ -119,7 +119,8 @@ static const SchemaTest tests[] = {
{ "flags-with-enum-attr", NULL, "*<enum id='flags'> not (yet) defined*" },
{ "flags-with-enum-tag", NULL, "*<flags id='flags'> not (yet) defined*" },
{ "inherit-gettext-domain", NULL, NULL },
- { "range-type-test", NULL, NULL }
+ { "range-type-test", NULL, NULL },
+ { "cdata", NULL, NULL }
};
diff --git a/gio/tests/schema-tests/cdata.gschema.xml b/gio/tests/schema-tests/cdata.gschema.xml
new file mode 100644
index 0000000..be2aac8
--- /dev/null
+++ b/gio/tests/schema-tests/cdata.gschema.xml
@@ -0,0 +1,7 @@
+<schemalist>
+ <schema id="no-default" path="/tests/">
+ <key name="bla" type="as">
+ <default><![CDATA[['<bla>','<bla>']]]></default>
+ </key>
+ </schema>
+</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]