[Bug 17267] [QT3TS] K2-SeqDeepEqualFunc-38, 39

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17267

Tim Mills <tim@cbcl.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|FIXED                       |

--- Comment #4 from Tim Mills <tim@cbcl.co.uk> 2012-08-10 15:01:10 UTC ---
The schema is referenced by the environment, but not imported.

The line:

declare namespace p = "http://www.w3.org/XQueryTest/perversity";

should be replaced with 

import schema namespace p = "http://www.w3.org/XQueryTest/perversity";

and 

<dependency type="feature" value="schemaImport"/>

should be added to both K2-SeqDeepEqualFunc-38 and 39.

   <test-case name="K2-SeqDeepEqualFunc-38">
      <description>Element with mixed content is not equal to similar element
with element-only content</description>
      <created by="Michael Kay" on="2012-05-30"/>
      <environment ref="perverse"/>
      <dependency type="spec" value="XQ10+"/>
      <dependency type="feature" value="schemaValidation"/>
      <test><![CDATA[
        declare namespace p = "http://www.w3.org/XQueryTest/perversity";
        let $v := validate strict {<p:elementOnly><p:e/></p:elementOnly>}
        let $w := validate strict {<p:mixed><p:e/></p:mixed>}
        let $x := validate strict {<p:empty><p:e/></p:empty>}
        let $y := validate strict {<p:simple><p:e/></p:simple>}
        return deep-equal($v/p:e, $w/p:e) or deep-equal($w/p:e, $x/p:e) 
            or deep-equal($v/p:e, $x/p:e) or deep-equal($x/p:e, $y/p:e)
      ]]></test>
      <result>
         <assert-false/>
      </result>
   </test-case>

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 10 August 2012 15:01:20 UTC