[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kdom/patternist/kxqts/customts
From:       Frans Englich <frans.englich () telia ! com>
Date:       2006-09-22 18:47:01
Message-ID: 1158950821.553760.30131.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 587434 by englich:

Better tests.


 M  +22 -1     CustomCatalog.in.xml  


--- trunk/kdenonbeta/kdom/patternist/kxqts/customts/CustomCatalog.in.xml \
#587433:587434 @@ -1031,7 +1031,6 @@
                   xml-fragment='&lt;a foo="content2"/>'
               ><![CDATA[<a>{<e foo="content2" \
bar="content1"/>/attribute(foo)}</a>]]></k:test-case>  
-
               <k:test-case
                   description="String literals aren't allowed in schema-element()."
                   type="fail-statically" errorCode="XPST0003"
@@ -1052,6 +1051,28 @@
                   type="fail-statically" errorCode="XPST0081"
                   >schema-attribute(: a little comment \
:)(notDeclared:ncname)</k:test-case>  
+              <k:test-case
+                  description="Specifying an unknown type in schema-element() is an \
error." +                  type="fail-statically" errorCode="XPST0008"
+                  >schema-element(thisTypeDoesNotExistExample.Com)</k:test-case>
+
+              <k:test-case
+                  description="Specifying an unknown type in schema-attribute() is \
an error." +                  type="fail-statically" errorCode="XPST0008"
+                  >schema-attribute(thisTypeDoesNotExistExample.Com)</k:test-case>
+
+              <k:test-case
+                  description="Specifying an unknown type in schema-element() is an \
error(with namespace)." +                  type="fail-statically" \
errorCode="XPST0008" +                  >declare namespace e = \
"http://www.example.com/"; +                  \
schema-element(e:thisTypeDoesNotExistExample.Com)</k:test-case> +
+              <k:test-case
+                  description="Specifying an unknown type in schema-attribute() is \
an error(with namespace)." +                  type="fail-statically" \
errorCode="XPST0008" +                  >declare namespace e = \
"http://www.example.com/"; +                  \
schema-attribute(e:thisTypeDoesNotExistExample.Com)</k:test-case> +
             </test-group>
           </test-group>
         </test-group>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic