Fix the wrong-category schema test
authorChristian Persch <chpe@gnome.org>
Fri, 26 Nov 2010 21:46:51 +0000 (22:46 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 28 Nov 2010 22:26:30 +0000 (17:26 -0500)
It's supposed to test a <default l10n="..."> with a non-existent
category, so make it actually check this!

Bug #635882.

gio/tests/gschema-compile.c
gio/tests/schema-tests/wrong-category.gschema.xml

index caefb89..2ffa85b 100644 (file)
@@ -46,7 +46,7 @@ static const SchemaTest tests[] = {
   { "no-default",                   NULL, "*<default> is required in <key>*"                    },
   { "missing-quotes",               NULL, "*unknown keyword*"                                   },
   { "incomplete-list",              NULL, "*to follow array element*"                           },
-  { "wrong-category",               NULL, "*attribute 'l10n' invalid*"                          },
+  { "wrong-category",               NULL, "*unsupported l10n category*"                         },
   { "bad-type",                     NULL, "*invalid GVariant type string*"                      },
   { "overflow",                     NULL, "*out of range*"                                      },
   { "range-wrong-type",             NULL, "*<range> not allowed for keys of type*"              },
index 5c1ec79..c548248 100644 (file)
@@ -1,7 +1,7 @@
 <schemalist>
   <schema id="wrong-category" path="/tests/" gettext-domain="test">
-    <key name="test" type="s" l10n="not-a-category">
-      <default>'foo'</default>
+    <key name="test" type="s">
+      <default l10n="not-a-category">'foo'</default>
     </key>
   </schema>
 </schemalist>