JamesMGreene / jWalker

A well-tested cross-browser JavaScript implementation of the TreeWalker class defined in the W3C specification for DOM Traversal (DOM Level 2).
http://jamesmgreene.github.com/jWalker/
MIT License
2 stars 1 forks source link

Write tests for the native API polyfill #11

Open JamesMGreene opened 11 years ago

JamesMGreene commented 11 years ago

Write tests for the native API polyfill

JamesMGreene commented 9 years ago

My wife tried to throw out my old notebook so I figured I'd better archive my long-belated unit test diagram drawings now before she succeeds in tossing them out. :stuck_out_tongue:

TreeWalker#firstChild

1_firstchild

TreeWalker#parentNode

2_parentnode

TreeWalker#lastChild

3_lastchild

TreeWalker#previousSibling

4_previoussibling

TreeWalker#nextSibling

5_nextsibling

TreeWalker#previousNode

6_previousnode 7_previousnode_more

TreeWalker#nextNode

8_nextnode