[glib] Add a test for CDATA in gschema.xml files



commit fc0b8d4f28c1d3d24a0d92b134ebbe74966a4a73
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 bcff562..ad3f9dd 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]