jasmine.TreeNode isAncestorOf returns true if the node is an ancestor of the given node (from jasmine.specs)