gschema-test: invert expectation for min/max omit
authorRyan Lortie <desrt@desrt.ca>
Thu, 31 Mar 2011 09:41:30 +0000 (15:11 +0530)
committerRyan Lortie <desrt@desrt.ca>
Thu, 31 Mar 2011 09:45:09 +0000 (15:15 +0530)
It is now completely valid.

Fix up what is now a legitimate range error in the schema used in one of
the tests.

gio/tests/gschema-compile.c
gio/tests/schema-tests/range-missing-max.gschema.xml

index 2ffa85b..65c5c3a 100644 (file)
@@ -50,8 +50,8 @@ static const SchemaTest tests[] = {
   { "bad-type",                     NULL, "*invalid GVariant type string*"                      },
   { "overflow",                     NULL, "*out of range*"                                      },
   { "range-wrong-type",             NULL, "*<range> not allowed for keys of type*"              },
-  { "range-missing-min",            NULL, "*element 'range' requires attribute 'min'*"          },
-  { "range-missing-max",            NULL, "*element 'range' requires attribute 'max'*"          },
+  { "range-missing-min",            NULL, NULL                                                  },
+  { "range-missing-max",            NULL, NULL                                                  },
   { "default-out-of-range",         NULL, "*<default> is not contained in the specified range*" },
   { "choices-wrong-type",           NULL, "*<choices> not allowed for keys of type*"            },
   { "choice-missing-value",         NULL, "*element 'choice' requires attribute 'value'*"       },
index 8e8bd55..c5c43b9 100644 (file)
@@ -1,8 +1,8 @@
 <schemalist>
     <schema id="test">
       <key name="test" type="i">
-        <range min="100" />
-        <default>2</default>
+        <range min="100"/>
+        <default>200</default>
       </key>
     </schema>
 </schemalist>