| This tests viewport datagrid. |
| Nodes 3 and 24 have children but should be collapsed initially |
| Nodes attached to dom: |
| a0 |
| a1 |
| a2 |
| a3 has children |
| a4 |
| a5 |
| a6 |
| |
| Expanding Node 3 and Node 24 |
| Nodes attached to dom: |
| a0 |
| a1 |
| a2 |
| a3 has children, expanded |
| a3.0 depth: 1 |
| a3.1 depth: 1 |
| a3.2 depth: 1 |
| |
| Collapsing Node 3 |
| Nodes attached to dom: |
| a0 |
| a1 |
| a2 |
| a3 has children |
| a4 |
| a5 |
| a6 |
| |
| Scrolled down to 220px |
| Expanding Node 3 while not in dom |
| Scrolled back up to 0px |
| Nodes attached to dom: |
| a0 |
| a1 |
| a2 |
| a3 has children, expanded |
| a3.0 depth: 1 |
| a3.1 depth: 1 |
| a3.2 depth: 1 |
| |
| Moving node 0 to be a child of node 3 to make sure attributes adjust (name does not change) |
| Nodes attached to dom: |
| a1 |
| a2 |
| a3 has children, expanded |
| a0 depth: 1 |
| a3.0 depth: 1 |
| a3.1 depth: 1 |
| a3.2 depth: 1 |
| |
| Moving node that is attached to dom (node 0) to child of offscreen parent (node 24) |
| Nodes attached to dom: |
| a1 |
| a2 |
| a3 has children, expanded |
| a3.0 depth: 1 |
| a3.1 depth: 1 |
| a3.2 depth: 1 |
| a4 |
| |
| Scrolling down to 1000px - should be at bottom to make sure node 0 is attached properly to node 24 |
| Nodes attached to dom: |
| a22 |
| a23 |
| a24 has children, expanded |
| a0 depth: 1 |
| a24.0 depth: 1 |
| a24.1 depth: 1 |
| a25 |
| |
| |