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 2516 - Constr-inscope-2 results are wrong
Summary: Constr-inscope-2 results are wrong
Status: RESOLVED WORKSFORME
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-12 17:56 UTC by Michael Kay
Modified: 2005-11-14 23:55 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-11-12 17:56:41 UTC
Constr-inscope-2 results are wrong. The test copies two attributes from the
source document; both should appear in the expected results, but attr2 is missing.

Note: Constr-inscope-1 to 4 are the only tests in the suite that require manual
inspection of results. I do think it would be useful to rewrite the tests is a
way that avoids this.
Comment 1 Andreas Behm 2005-11-14 17:18:20 UTC
attr2 is included in the test result:
<new xmlns:foo="http://www.example.com/parent1"
xmlns:XXX="http://www.example.com/parent2" foo:attr1="attr1" XXX:attr2="attr2"/>

The tests purposely test an implementation-defined behavior, so the only
possible comparator is "inspect". Using functions to return inscope namespaces
would reduce the value of the tests, and these functions are not included in our
foundation set.

Having the "inspect" comparator was a conscious descision when designing the
test suite, there we expect more tests using this comparator.
Comment 2 Michael Kay 2005-11-14 23:55:07 UTC
Sorry I must have opened the wrong file when I was inspecting the results.

Michael Kay