(candidate, ancestor)
| 2997 | } |
| 2998 | |
| 2999 | function isDescendent(candidate, ancestor) { |
| 3000 | if (!candidate.parentSuite) { |
| 3001 | return false |
| 3002 | } else if (candidate.parentSuite === ancestor) { |
| 3003 | return true |
| 3004 | } else { |
| 3005 | return isDescendent(candidate.parentSuite, ancestor) |
| 3006 | } |
| 3007 | } |
| 3008 | |
| 3009 | return CompleteOnFirstErrorSkipPolicy |
| 3010 | } |