Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
PassTest that TreeWalker.parent() doesn't set the currentNode to a node not under the root.
Asserts run
Pass
assert_true(true, "Node type mismatch: actual = 1, expected = undefined")
    at assert_node ( /dom/traversal/support/assert-node.js:4:5)
Pass
assert_equals("subTree", "subTree")
    at assert_node ( /dom/traversal/support/assert-node.js:7:9)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:30:5)
Pass
assert_true(true, "Node type mismatch: actual = 1, expected = undefined")
    at assert_node ( /dom/traversal/support/assert-node.js:4:5)
Pass
assert_equals("subTree", "subTree")
    at assert_node ( /dom/traversal/support/assert-node.js:7:9)
PassTest that we handle setting the currentNode to arbitrary nodes not under the root element.
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:41:5)
Pass
assert_equals(Element node <html><!-- Test adapted from chromium/source/src/third_pa..., Element node <html><!-- Test adapted from chromium/source/src/third_pa...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:42:5)
Pass
assert_equals(Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->, Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:44:5)
Pass
assert_equals(Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->, Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:45:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:47:5)
Pass
assert_equals(Element node <html><!-- Test adapted from chromium/source/src/third_pa..., Element node <html><!-- Test adapted from chromium/source/src/third_pa...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:48:5)
Pass
assert_equals(Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->, Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:50:5)
Pass
assert_equals(Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->, Comment node <!-- Test adapted from chromium/source/src/third_party/WebKit...-->)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:51:5)
Pass
assert_equals(Element node <body><div id="log">Running, 1 complete, 1 remain</div>  ..., Element node <body><div id="log">Running, 1 complete, 1 remain</div>  ...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:53:5)
Pass
assert_equals(Element node <body><div id="log">Running, 1 complete, 1 remain</div>  ..., Element node <body><div id="log">Running, 1 complete, 1 remain</div>  ...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:54:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:56:5)
Pass
assert_equals(Element node <html><!-- Test adapted from chromium/source/src/third_pa..., Element node <html><!-- Test adapted from chromium/source/src/third_pa...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:57:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:59:5)
Pass
assert_equals(Element node <html><!-- Test adapted from chromium/source/src/third_pa..., Element node <html><!-- Test adapted from chromium/source/src/third_pa...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:60:5)
PassTest how we handle the case when the traversed to node is within the root, but the currentElement is not.
Asserts run
Pass
assert_equals(Element node <div id="subTree"><p>Lorem ipsum <span>dolor <b>sit</b> a..., Element node <div id="subTree"><p>Lorem ipsum <span>dolor <b>sit</b> a...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:67:5)
Pass
assert_equals(Element node <div id="subTree"><p>Lorem ipsum <span>dolor <b>sit</b> a..., Element node <div id="subTree"><p>Lorem ipsum <span>dolor <b>sit</b> a...)
    at Test.<anonymous> ( /dom/traversal/TreeWalker-currentNode.html:69:5)

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Test TreeWalker currentNode functionality