aboutsummaryrefslogtreecommitdiff
path: root/modules/test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/test')
-rw-r--r--modules/test/test-ui-shell.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/test/test-ui-shell.js b/modules/test/test-ui-shell.js
index ea4dc84..aced2e0 100644
--- a/modules/test/test-ui-shell.js
+++ b/modules/test/test-ui-shell.js
@@ -128,6 +128,12 @@ shell.registerMode({
const slot = api.el('div', { id: 'probe-slot' });
api.root.appendChild(slot);
api.attach(slot, api.stock.output); // reparent the real terminal
+ // Move a SECOND stock node: every real mode moves the input and the status bar too, and with
+ // only one node moved the `next`-sibling restore heuristic looked correct while being wrong.
+ const slot2 = api.el('div', { id: 'probe-slot2' });
+ api.root.appendChild(slot2);
+ const input = document.getElementById('input-area');
+ if (input) slot2.appendChild(input);
return () => { unmounted++; };
}
});