Re: [domxpath-tests] Add a test for the XPath interfaces (#4834)

# Chrome (unstable channel) #
Testing web-platform-tests at revision 517abc8989dbac9b09a40b9d2f0c18cdbc54dc59
Using browser at version 58.0.3004.3 dev
Starting 10 test iterations
All results were stable
## All results ##
<details>
<summary>1 test ran</summary>
<details>
<summary><a href="http://w3c-test.org/submissions/4834/domxpath/interfaces.html">/domxpath/interfaces.html</a></summary>


|                                                                       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    |

</details>
</details>

View on GitHub: https://github.com/w3c/web-platform-tests/pull/4834#issuecomment-280040517

Received on Wednesday, 15 February 2017 15:24:32 UTC