Files
cappuccino/Tests/AppKit
David Richardson 3a140b07fe Fix child-node index arithmetic and expand CPTreeNode test coverage
CPTreeNode.j:
* Correct index calculations in insertObject:inChildNodesAtIndex: and replaceObjectInChildNodesAtIndex:withObject:. Nodes no longer misplace during same-parent or cross-parent moves.
 * Update _removeChildNode: to call removeObjectFromChildNodesAtIndex:. This ensures detaches notify childNodes observers on the original parent.

CPTreeNodeTest.j:
* Add test coverage for same-parent replacement, cycle rejection on replace-path, KVO during cross-parent moves, mutableChildNodes proxy operations, insertion bounds, non-recursive sorting, isLeaf, and descendantNodeAtIndexPath: edge cases.
* Disable same-parent childNodes KVO test. CPKeyValueObserving.j coalesces nested change notifications on the same key, which drops the inner removal event.
* Disable parentNode KVO test. No setParentNode: method exists to instrument.
* Add inline comments to both disabled tests explaining these mechanisms.
2026-08-28 13:35:27 -06:00
..
2013-01-20 19:10:41 +00:00
2011-04-23 15:50:32 +02:00
2011-04-25 14:12:52 +02:00
2025-07-05 12:29:11 +02:00
2026-02-28 18:26:47 +01:00
2025-07-05 12:33:21 +02:00
2025-07-05 12:35:43 +02:00
2025-07-05 09:04:26 +02:00
2025-09-04 11:54:06 +03:00
2015-10-23 10:19:14 +02:00
2026-08-25 20:39:34 +02:00
2025-06-22 21:52:57 +02:00