Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for the XPath interfaces #4834

Merged
merged 2 commits into from
Feb 15, 2017

Conversation

gsnedders
Copy link
Member

Best guess WebIDL based on OMGIDL in spec and impls.

@wpt-pr-bot
Copy link
Collaborator

Notifying @deniak and @zqzhang. (Learn how reviewing works.)

@w3c-bots
Copy link

w3c-bots commented Feb 15, 2017

Chrome (unstable channel)

Testing web-platform-tests at revision ebbf571
Using browser at version 58.0.3004.3 dev
Starting 10 test iterations
All results were stable

All results

1 test ran
/domxpath/interfaces.html
Subtest Results
OK
XPathResult interface: attribute singleNodeValue PASS
XPathResult interface: constant BOOLEAN_TYPE on interface prototype object PASS
XPathResult interface object name PASS
Stringification of result PASS
Document interface: operation createNSResolver(Node) PASS
XPathExpression must be primary interface of expression PASS
XPathResult interface: constant FIRST_ORDERED_NODE_TYPE on interface prototype object PASS
XPathResult interface: result must inherit property "booleanValue" with the proper type (13) PASS
XPathExpression interface: calling evaluate(Node,unsigned short,object) on expression with too few arguments must throw TypeError PASS
XPathResult interface: constant NUMBER_TYPE on interface object PASS
Document must be primary interface of document FAIL
XPathNSResolver interface: existence and properties of interface object PASS
XPathResult interface: result must inherit property "NUMBER_TYPE" with the proper type (1) PASS
XPathResult interface: constant ANY_TYPE on interface prototype object PASS
Stringification of expression PASS
XPathResult interface: result must inherit property "ORDERED_NODE_SNAPSHOT_TYPE" with the proper type (7) PASS
XPathResult interface: constant ORDERED_NODE_SNAPSHOT_TYPE on interface object PASS
XPathResult interface: constant STRING_TYPE on interface object PASS
XPathResult interface: result must inherit property "stringValue" with the proper type (12) PASS
XPathResult interface: constant BOOLEAN_TYPE on interface object PASS
Document interface: document must inherit property "createNSResolver" with the proper type (1) PASS
XPathEvaluator interface: existence and properties of interface prototype object's "constructor" property PASS
XPathExpression interface: existence and properties of interface prototype object FAIL
XPathResult must be primary interface of result PASS
XPathResult interface: existence and properties of interface object PASS
XPathEvaluator interface: existence and properties of interface object PASS
XPathResult interface: result must inherit property "FIRST_ORDERED_NODE_TYPE" with the proper type (9) PASS
XPathEvaluator interface: operation createExpression(DOMString,XPathNSResolver) PASS
XPathEvaluator interface: operation evaluate(DOMString,Node,XPathNSResolver,unsigned short,object) PASS
XPathResult interface: constant STRING_TYPE on interface prototype object PASS
XPathExpression interface object length PASS
Document interface: operation evaluate(DOMString,Node,XPathNSResolver,unsigned short,object) PASS
XPathResult interface: result must inherit property "snapshotLength" with the proper type (16) PASS
XPathResult interface: result must inherit property "numberValue" with the proper type (11) PASS
XPathResult interface: result must inherit property "STRING_TYPE" with the proper type (2) PASS
XPathResult interface: result must inherit property "singleNodeValue" with the proper type (14) PASS
XPathResult interface: constant ORDERED_NODE_SNAPSHOT_TYPE on interface prototype object PASS
XPathEvaluator interface object length PASS
XPathResult interface: attribute booleanValue PASS
XPathResult interface: constant ANY_UNORDERED_NODE_TYPE on interface object PASS
Document interface: calling createNSResolver(Node) on document with too few arguments must throw TypeError PASS
XPathResult interface: attribute stringValue PASS
XPathResult interface: result must inherit property "invalidIteratorState" with the proper type (15) PASS
XPathResult interface: existence and properties of interface prototype object FAIL
XPathResult interface: operation snapshotItem(unsigned long) PASS
XPathResult interface: constant ANY_UNORDERED_NODE_TYPE on interface prototype object PASS
XPathResult interface: result must inherit property "ORDERED_NODE_ITERATOR_TYPE" with the proper type (5) PASS
XPathResult interface: result must inherit property "ANY_TYPE" with the proper type (0) PASS
Document interface: document must inherit property "evaluate" with the proper type (2) PASS
Document interface: calling evaluate(DOMString,Node,XPathNSResolver,unsigned short,object) on document with too few arguments must throw TypeError PASS
XPathResult interface: attribute resultType PASS
Document interface: operation createExpression(DOMString,XPathNSResolver) PASS
XPathExpression interface: expression must inherit property "evaluate" with the proper type (0) PASS
XPathResult interface: result must inherit property "snapshotItem" with the proper type (18) PASS
XPathNSResolver interface: existence and properties of interface prototype object PASS
Stringification of document FAIL
XPathResult interface: existence and properties of interface prototype object's "constructor" property PASS
XPathNSResolver interface: operation lookupNamespaceURI(DOMString) PASS
XPathResult interface: constant ORDERED_NODE_ITERATOR_TYPE on interface prototype object PASS
XPathResult interface: constant UNORDERED_NODE_ITERATOR_TYPE on interface prototype object PASS
Document interface: document must inherit property "createExpression" with the proper type (0) PASS
XPathResult interface: result must inherit property "UNORDERED_NODE_SNAPSHOT_TYPE" with the proper type (6) PASS
XPathExpression interface: operation evaluate(Node,unsigned short,object) PASS
XPathResult interface: result must inherit property "resultType" with the proper type (10) PASS
XPathResult interface: constant UNORDERED_NODE_SNAPSHOT_TYPE on interface prototype object PASS
XPathNSResolver interface: existence and properties of interface prototype object's "constructor" property PASS
XPathResult interface: constant UNORDERED_NODE_ITERATOR_TYPE on interface object PASS
XPathEvaluator interface: operation createNSResolver(Node) PASS
XPathResult interface: constant ANY_TYPE on interface object PASS
XPathResult interface: constant FIRST_ORDERED_NODE_TYPE on interface object PASS
XPathResult interface: attribute invalidIteratorState PASS
XPathExpression interface object name PASS
XPathResult interface: calling snapshotItem(unsigned long) on result with too few arguments must throw TypeError PASS
XPathExpression interface: existence and properties of interface object PASS
XPathEvaluator interface object name PASS
XPathResult interface: result must inherit property "UNORDERED_NODE_ITERATOR_TYPE" with the proper type (4) PASS
XPathExpression interface: existence and properties of interface prototype object's "constructor" property PASS
XPathResult interface object length PASS
XPathResult interface: constant ORDERED_NODE_ITERATOR_TYPE on interface object PASS
XPathResult interface: operation iterateNext() PASS
XPathResult interface: constant NUMBER_TYPE on interface prototype object PASS
XPathResult interface: result must inherit property "BOOLEAN_TYPE" with the proper type (3) PASS
Document interface: calling createExpression(DOMString,XPathNSResolver) on document with too few arguments must throw TypeError PASS
XPathResult interface: constant UNORDERED_NODE_SNAPSHOT_TYPE on interface object PASS
XPathResult interface: result must inherit property "ANY_UNORDERED_NODE_TYPE" with the proper type (8) PASS
XPathResult interface: result must inherit property "iterateNext" with the proper type (17) PASS
XPathResult interface: attribute numberValue PASS
XPathResult interface: attribute snapshotLength PASS
XPathEvaluator interface: existence and properties of interface prototype object FAIL

@w3c-bots
Copy link

w3c-bots commented Feb 15, 2017

Firefox (nightly channel)

Testing web-platform-tests at revision ebbf571
Using browser at version BuildID 20170123125947; SourceStamp 36486fdc3813ef7943ae5b07b4128866d1938a6c
Starting 10 test iterations
All results were stable

All results

1 test ran
/domxpath/interfaces.html
Subtest Results
OK
XPathResult interface: attribute singleNodeValue PASS
XPathResult interface: constant BOOLEAN_TYPE on interface prototype object PASS
XPathResult interface object name PASS
Stringification of result PASS
Document interface: operation createNSResolver(Node) PASS
XPathExpression must be primary interface of expression PASS
XPathResult interface: constant FIRST_ORDERED_NODE_TYPE on interface prototype object PASS
XPathResult interface: result must inherit property "booleanValue" with the proper type (13) PASS
XPathExpression interface: calling evaluate(Node,unsigned short,object) on expression with too few arguments must throw TypeError PASS
XPathResult interface: constant NUMBER_TYPE on interface object PASS
Document must be primary interface of document FAIL
XPathNSResolver interface: existence and properties of interface object PASS
XPathResult interface: result must inherit property "NUMBER_TYPE" with the proper type (1) PASS
XPathResult interface: constant ANY_TYPE on interface prototype object PASS
Stringification of expression PASS
XPathResult interface: result must inherit property "ORDERED_NODE_SNAPSHOT_TYPE" with the proper type (7) PASS
XPathResult interface: constant ORDERED_NODE_SNAPSHOT_TYPE on interface object PASS
XPathResult interface: constant STRING_TYPE on interface object PASS
XPathResult interface: result must inherit property "stringValue" with the proper type (12) PASS
XPathResult interface: constant BOOLEAN_TYPE on interface object PASS
Document interface: document must inherit property "createNSResolver" with the proper type (1) PASS
XPathEvaluator interface: existence and properties of interface prototype object's "constructor" property PASS
XPathExpression interface: existence and properties of interface prototype object PASS
XPathResult must be primary interface of result PASS
XPathResult interface: existence and properties of interface object PASS
XPathEvaluator interface: existence and properties of interface object PASS
XPathResult interface: result must inherit property "FIRST_ORDERED_NODE_TYPE" with the proper type (9) PASS
XPathEvaluator interface: operation createExpression(DOMString,XPathNSResolver) FAIL
XPathEvaluator interface: operation evaluate(DOMString,Node,XPathNSResolver,unsigned short,object) FAIL
XPathResult interface: constant STRING_TYPE on interface prototype object PASS
XPathExpression interface object length PASS
Document interface: operation evaluate(DOMString,Node,XPathNSResolver,unsigned short,object) FAIL
XPathResult interface: result must inherit property "snapshotLength" with the proper type (16) PASS
XPathResult interface: result must inherit property "numberValue" with the proper type (11) PASS
XPathResult interface: result must inherit property "STRING_TYPE" with the proper type (2) PASS
XPathResult interface: result must inherit property "singleNodeValue" with the proper type (14) PASS
XPathResult interface: constant ORDERED_NODE_SNAPSHOT_TYPE on interface prototype object PASS
XPathEvaluator interface object length PASS
XPathResult interface: attribute booleanValue PASS
XPathResult interface: constant ANY_UNORDERED_NODE_TYPE on interface object PASS
Document interface: calling createNSResolver(Node) on document with too few arguments must throw TypeError PASS
XPathResult interface: attribute stringValue PASS
XPathResult interface: result must inherit property "invalidIteratorState" with the proper type (15) PASS
XPathResult interface: existence and properties of interface prototype object PASS
XPathResult interface: operation snapshotItem(unsigned long) PASS
XPathResult interface: constant ANY_UNORDERED_NODE_TYPE on interface prototype object PASS
XPathResult interface: result must inherit property "ORDERED_NODE_ITERATOR_TYPE" with the proper type (5) PASS
XPathResult interface: result must inherit property "ANY_TYPE" with the proper type (0) PASS
Document interface: document must inherit property "evaluate" with the proper type (2) PASS
Document interface: calling evaluate(DOMString,Node,XPathNSResolver,unsigned short,object) on document with too few arguments must throw TypeError PASS
XPathResult interface: attribute resultType PASS
Document interface: operation createExpression(DOMString,XPathNSResolver) FAIL
XPathExpression interface: expression must inherit property "evaluate" with the proper type (0) PASS
XPathResult interface: result must inherit property "snapshotItem" with the proper type (18) PASS
XPathNSResolver interface: existence and properties of interface prototype object PASS
Stringification of document FAIL
XPathResult interface: existence and properties of interface prototype object's "constructor" property PASS
XPathNSResolver interface: operation lookupNamespaceURI(DOMString) PASS
XPathResult interface: constant ORDERED_NODE_ITERATOR_TYPE on interface prototype object PASS
XPathResult interface: constant UNORDERED_NODE_ITERATOR_TYPE on interface prototype object PASS
Document interface: document must inherit property "createExpression" with the proper type (0) PASS
XPathResult interface: result must inherit property "UNORDERED_NODE_SNAPSHOT_TYPE" with the proper type (6) PASS
XPathExpression interface: operation evaluate(Node,unsigned short,object) FAIL
XPathResult interface: result must inherit property "resultType" with the proper type (10) PASS
XPathResult interface: constant UNORDERED_NODE_SNAPSHOT_TYPE on interface prototype object PASS
XPathNSResolver interface: existence and properties of interface prototype object's "constructor" property PASS
XPathResult interface: constant UNORDERED_NODE_ITERATOR_TYPE on interface object PASS
XPathEvaluator interface: operation createNSResolver(Node) PASS
XPathResult interface: constant ANY_TYPE on interface object PASS
XPathResult interface: constant FIRST_ORDERED_NODE_TYPE on interface object PASS
XPathResult interface: attribute invalidIteratorState PASS
XPathExpression interface object name PASS
XPathResult interface: calling snapshotItem(unsigned long) on result with too few arguments must throw TypeError PASS
XPathExpression interface: existence and properties of interface object PASS
XPathEvaluator interface object name PASS
XPathResult interface: result must inherit property "UNORDERED_NODE_ITERATOR_TYPE" with the proper type (4) PASS
XPathExpression interface: existence and properties of interface prototype object's "constructor" property PASS
XPathResult interface object length PASS
XPathResult interface: constant ORDERED_NODE_ITERATOR_TYPE on interface object PASS
XPathResult interface: operation iterateNext() PASS
XPathResult interface: constant NUMBER_TYPE on interface prototype object PASS
XPathResult interface: result must inherit property "BOOLEAN_TYPE" with the proper type (3) PASS
Document interface: calling createExpression(DOMString,XPathNSResolver) on document with too few arguments must throw TypeError PASS
XPathResult interface: constant UNORDERED_NODE_SNAPSHOT_TYPE on interface object PASS
XPathResult interface: result must inherit property "ANY_UNORDERED_NODE_TYPE" with the proper type (8) PASS
XPathResult interface: result must inherit property "iterateNext" with the proper type (17) PASS
XPathResult interface: attribute numberValue PASS
XPathResult interface: attribute snapshotLength PASS
XPathEvaluator interface: existence and properties of interface prototype object PASS

@Ms2ger Ms2ger merged commit cd6f34e into web-platform-tests:master Feb 15, 2017
@gsnedders gsnedders deleted the xpath_tests branch February 15, 2017 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants