Bug 19281 - [QT3TS] try-catch-fn-error-1
[QT3TS] try-catch-fn-error-1
Status: CLOSED FIXED
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite
Working drafts
PC Windows NT
: P2 normal
: ---
Assigned To: O'Neil Delpratt
Mailing list for public feedback on specs from XSL and XML Query WGs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-05 08:23 UTC by Tim Mills
Modified: 2012-10-05 14:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Mills 2012-10-05 08:23:22 UTC
This test shows a limitation of the current test suite. The "code" attribute is an NCName, and the check assumes that the expected error is in the standard error namespace.  In this test, the assumption does not hold.

  <test-case name="try-catch-fn-error-1" covers="fn-error">
    <description>Try-catch must match fn:error semantics.</description>
    <created by="Ghislain Fourny" on="2012-10-03"/>
    
    <test>fn:error(fn:QName("http://www.example.com/", "example:EXER3141"))</test>
    <result>
      <error code="EXER3141"/>
    </result>
  </test-case>
Comment 1 Michael Kay 2012-10-05 09:20:23 UTC
Actually the schema currently allows union(NCName, "*"). I will fix this so it also allows an EQName, and change this test to use an EQName. Test drivers, of course, will have to adapt.
Comment 2 Tim Mills 2012-10-05 14:30:59 UTC
Thanks.