Implement nextNode(), previousNode() and detach() in NodeIterator

First patch to resolve #1235. We need more implementation for handling node removals,
and I'll implement in next patch.
This commit is contained in:
Jinwoo Song 2015-05-06 21:13:14 +09:00
parent 4e8005cd5b
commit cb2bdf1977
4 changed files with 199 additions and 2289 deletions

View file

@ -132,10 +132,10 @@
[Document interface: xmlDoc must inherit property "origin" with the proper type (3)]
expected: FAIL
[Document interface: xmlDoc must inherit property "createNodeIterator" with the proper type (25)]
[Document interface: calling prepend([object Object\],[object Object\]) on xmlDoc with too few arguments must throw TypeError]
expected: FAIL
[Document interface: calling createNodeIterator(Node,unsigned long,NodeFilter) on xmlDoc with too few arguments must throw TypeError]
[Document interface: calling append([object Object\],[object Object\]) on xmlDoc with too few arguments must throw TypeError]
expected: FAIL
[Document interface: xmlDoc must inherit property "query" with the proper type (34)]
@ -363,58 +363,7 @@
[Range interface: calling surroundContents(Node) on detachedRange with too few arguments must throw TypeError]
expected: FAIL
[NodeIterator interface: attribute root]
expected: FAIL
[NodeIterator interface: attribute referenceNode]
expected: FAIL
[NodeIterator interface: attribute pointerBeforeReferenceNode]
expected: FAIL
[NodeIterator interface: attribute whatToShow]
expected: FAIL
[NodeIterator interface: attribute filter]
expected: FAIL
[NodeIterator interface: operation nextNode()]
expected: FAIL
[NodeIterator interface: operation previousNode()]
expected: FAIL
[NodeIterator interface: operation detach()]
expected: FAIL
[NodeIterator must be primary interface of document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false)]
expected: FAIL
[Stringification of document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "root" with the proper type (0)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "referenceNode" with the proper type (1)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "pointerBeforeReferenceNode" with the proper type (2)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "whatToShow" with the proper type (3)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "filter" with the proper type (4)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "nextNode" with the proper type (5)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "previousNode" with the proper type (6)]
expected: FAIL
[NodeIterator interface: document.createNodeIterator(document.body, NodeFilter.SHOW_ALL, null, false) must inherit property "detach" with the proper type (7)]
[NodeIterator interface object length]
expected: FAIL
[TreeWalker interface object length]

File diff suppressed because it is too large Load diff