Bug 19281 - [QT3TS] try-catch-fn-error-1
Summary: [QT3TS] try-catch-fn-error-1
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2012-10-05 08:23 UTC by Tim Mills
Modified: 2012-10-05 14:30 UTC (History)
1 user (show)

See Also:


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>
      <error code="EXER3141"/>
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