Fancytree unit tests - Core

QUnit 1.23.1; Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Tests completed in 32 milliseconds.
39 assertions of 39 passed, 0 failed.

  1. Configuration and Summary: Version infoRerun
    1. Initialization: Static membersRerun
      1. Initialization: Create FancytreeRerun
        1. Initialization: Create Fancytree - initRerun
          1. Initialization: Init node status from sourceRerun
            1. Initialization: Init node with custom dataRerun
              1. Initialization: Custom icons (node.icon)Rerun
                1. Initialization: Custom icons (options.icon)Rerun
                  1. API: FancytreeNode class methods (39)Rerun17 ms
                    1. node.tree@ 13 ms
                    2. node.parent@ 13 ms
                    3. node.key@ 13 ms
                    4. node.children@ 13 ms
                    5. node.isStatusNode()@ 13 ms
                    6. Fancytree assertion failed: Invalid mode: undefined mode@ 14 ms
                    7. Node added at the last position@ 14 ms
                    8. Children added@ 15 ms
                    9. Children at first position@ 15 ms
                    10. Children added@ 15 ms
                    11. Children added at last position@ 15 ms
                    12. Children added@ 15 ms
                    13. Children add at the first position@ 15 ms
                    14. Children added before element@ 15 ms
                    15. Children added after element@ 15 ms
                    16. Children added at first even if no child@ 16 ms
                    17. countChildren() - root@ 16 ms
                    18. countChildren(true) - root@ 16 ms
                    19. countChildren(false) - root@ 16 ms
                    20. findAll() - no match@ 16 ms
                    21. findAll() - match title@ 16 ms
                    22. findAll() - match title (ignore case)@ 16 ms
                    23. findAll() - custom match@ 16 ms
                    24. findFirst() - no match@ 17 ms
                    25. findFirst() - match title@ 17 ms
                    26. findFirst() - match title (ignore case)@ 17 ms
                    27. findFirst() - custom match@ 17 ms
                    28. getIndex()@ 17 ms
                    29. getIndexHier()@ 17 ms
                    30. getIndexHier('/')@ 17 ms
                    31. getKeyPath()@ 17 ms
                    32. getKeyPath(false)@ 17 ms
                    33. getKeyPath(true)@ 17 ms
                    34. getParent()@ 17 ms
                    35. getParentList()@ 17 ms
                    36. getParentList(false, false)@ 17 ms
                    37. getParentList(true, true)@ 17 ms
                    38. getParentList(false, true)@ 17 ms
                    39. getParentList(true, false)@ 17 ms

                    Source: at HTMLDocument. (https://dclgapps.communities.gov.uk/scriptLib/fancytree/test/unit/test-core.js:340:7) at mightThrow (https://dclgapps.communities.gov.uk/scriptLib/fancytree/lib/jquery.js:3583:29) at process (https://dclgapps.communities.gov.uk/scriptLib/fancytree/lib/jquery.js:3651:12)

                  2. API: Fancytree class methodsRerun
                    1. Asynchronous API: trigger async expandRerun
                      1. Asynchronous API: makeVisible not rendered deep nodeRerun
                        1. events: .click() to expand a folderRerun
                          1. events: .click() to activate a nodeRerun
                            1. events: .click() to activate a folder (clickFolderMode 3 triggers expand)Rerun
                              1. events: .click() to select a nodeRerun
                                1. events: 'modifyChild' eventRerun
                                  1. generateFormElements(): multi selectRerun
                                    1. generateFormElements(): selectMode: 3Rerun
                                      1. lazy loading: Using ajax options for `source`; .click() expands a lazy folderRerun
                                        1. lazy loading: Using $.ajax promise for `source`; .click() expands a lazy folderRerun
                                          1. Selection mode 3: load behaviorRerun
                                            1. add children & patches: add childrenRerun
                                              1. add children & patches: apply patchRerun
                                                1. keypath: loadKeyPath (allready loaded)Rerun
                                                  1. keypath: loadKeyPath (lazy nodes)Rerun
                                                    1. keypath: loadKeyPath (multiple lazy nodes with expand)Rerun
                                                      test markup, will be hidden