(vnode: VNode)
| 64 | } |
| 65 | |
| 66 | function commitTree(vnode: VNode) { |
| 67 | const allocator = createInstanceIdAllocator(1); |
| 68 | const res = commitVNodeTree(null, vnode, { allocator }); |
| 69 | if (!res.ok) { |
| 70 | assert.fail(`commit failed: ${res.fatal.code}: ${res.fatal.detail}`); |
| 71 | } |
| 72 | return res.value.root; |
| 73 | } |
| 74 | |
| 75 | function layoutTree(vnode: VNode) { |
| 76 | const res = layout(vnode, 0, 0, 80, 25, "column"); |
no test coverage detected