Make Terminal a native feature
- Move the Terminal plugin into src/lib/features/terminal/ on the host Svelte runtime, with xterm 6.0.0 and addon-fit 0.11.0. - Buttons, shortcuts, Help rows, and the close guard follow the Terminal switch. The first use loads the module. - Add Settings → Terminal and the terminal settings section. The first start copies the old runestone.terminal key. - The 16 ANSI colors come from the --rs-ansi-* tokens. - Off asks first when a shell runs in any window (pty_running). - Rust: no pty-data or pty-exit events, an owner check for write, resize, and close, output joined up to 64 KiB or 8 ms, and the sessions of a reloaded page close. - Remove api.pty, the terminal contribution, TerminalSlot, and the plugin loader of the smoke harness. - Check only the tested switches in the Background smoke test. - Update the tests, the menu inventory, the docs, and UI-058.
This commit is contained in:
@@ -204,7 +204,10 @@ await runSmoke("features/background", async ({ browser }) => {
|
||||
await migrated.goto(smokeUrl);
|
||||
await waitForChange(migrated, "");
|
||||
assert.deepEqual(await migrated.evaluate(() => window.__TEST__.settings("background")), { source: "folder", seconds: 7, order: "random", paused: false, targets: ["app", "pm-all"], overlay: 0.3, position: "top", size: "contain" });
|
||||
assert.deepEqual(await migrated.evaluate(() => window.__TEST__.settings("features")), { git: true, background: true });
|
||||
// Each feature gets its switch. Background is on, and Git follows its old package (none here).
|
||||
const switches = await migrated.evaluate(() => window.__TEST__.settings("features"));
|
||||
assert.equal(switches.background, true);
|
||||
assert.equal(switches.git, true);
|
||||
assert.equal(await migrated.evaluate(() => window.__TEST__.calls.filter(call => call.command === "background_migrate").length), 1);
|
||||
assert.deepEqual(migrated.errors, []);
|
||||
await migrationContext.close();
|
||||
|
||||
Reference in New Issue
Block a user