Add a test for CDATA in gschema.xml files
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Nov 2011 05:14:28 +0000 (00:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Nov 2011 05:14:28 +0000 (00:14 -0500)
gio/tests/gschema-compile.c
gio/tests/schema-tests/cdata.gschema.xml [new file with mode: 0644]

index bcff562..ad3f9dd 100644 (file)
@@ -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 (file)
index 0000000..be2aac8
--- /dev/null
@@ -0,0 +1,7 @@
+<schemalist>
+  <schema id="no-default" path="/tests/">
+    <key name="bla" type="as">
+      <default><![CDATA[['<bla>','<bla>']]]></default>
+    </key>
+  </schema>
+</schemalist>