Commit Graph
2 Commits
Author SHA1 Message Date
Kevin Wern 23ebce6f9a Bug 1226920 - Allow calling ForEachNode() with an action returning void r=botond 2015-11-23 13:06:01 -05:00
Kevin Wern f7441d7bca Bug 1199798 - Create tests for TreeTraversal.h r=botond
Move queue and stack includes outside of mozilla namespace.

Test the following for searches:
- Null root returns null.
- Needle is root returns root.
- No needle results in full traversal.
- Needle node in middle returns that needle, and stops traversing.

Test the following for ForEachNode:
- Null root still runs correctly.
- No skips results in traversal of entire tree.
- Root skip results in only changing the root.
- First skips are still included (whether leaf or parent).
2015-11-16 13:54:12 -05:00