This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13133 - Tests that do not specify results for XQuery 3.0
Summary: Tests that do not specify results for XQuery 3.0
Status: RESOLVED MOVED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.3
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 18:39 UTC by Sorin Nasoi
Modified: 2016-04-12 13:54 UTC (History)
2 users (show)

See Also:


Attachments

Description Sorin Nasoi 2011-07-04 18:39:36 UTC
There are a bunch of tests that have as expected result an error not marked as being valid *only* for XQuery 1.0.
Also these tests do not state the behavior for XQuery 3.0.

1) K2-FunctionCallExpr-6:
- add  spec-version="1.0" for the XPST0017
- add XPTY0004 as alternate result because xs:string can not be treated as xs:anyNode like the F&O spec expects:
http://www.w3.org/TR/2011/WD-xpath-functions-30-20110614/#func-generate-id

2)K2-FunctionCallExpr-7
- add  spec-version="1.0" for the XPST0017
- add  result for XQuery 3.0

3)K-DataFunc-1
- add  spec-version="1.0" for the XPST0017
- add  result for XQuery 3.0

4)K2-DataFunc-1
- add  spec-version="1.0" for the XPST0017
- add  result for XQuery 3.0

5)K-DocumentURIFunc-2
- add  spec-version="1.0" for the XPST0017
- add  result for XQuery 3.0

6)K-NodeNameFunc-1
- add  spec-version="1.0" for the XPST0017
- add  result for XQuery 3.0
Comment 1 Sorin Nasoi 2011-07-11 13:39:05 UTC
The same is true for test K-DocumentURIFunc-2:

Here is what's stated in cat/DocumentURIFunc.xml 

<test-case is-XPath2="true" Creator="Frans Englich" name="K-DocumentURIFunc-2" FilePath="Functions/AccessorFunc/DocumentURIFunc/" scenario="runtime-error">
      <description>A test whose essence is: `document-uri()`.</description>
      <query name="K-DocumentURIFunc-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0017</expected-error>
   </test-case>


And here is the F&O Spec 3.0:
http://www.w3.org/TR/xpath-functions-30/#func-document-uri
Comment 3 Michael Kay 2013-06-21 13:54:54 UTC
I have reviewed these tests and in each case there is an existing test in QT3 that adequately tests the equivalent construct in XQuery 3.0. For example K2-FunctionCallExpr-6 tests what happens when a non-node is supplied to generate-id(); for XQuery 3.0 this is tested by generate-id-903. No changes needed.
Comment 4 Michael Kay 2013-06-21 14:17:56 UTC
Sorry the previous comment should have been against bug 22333 (the QT3 equivalent bug)
Comment 5 O'Neil Delpratt 2016-04-12 13:54:08 UTC
I am closing this bug issue as it has been transferred to the QT3 test suite bug list: See bug #22333.