chore(runtime): upgrade DSH and bundled plugins for runtime-7.10

This commit is contained in:
2026-10-26 11:22:36 +08:00
parent 9961d42a2f
commit 0389555d76
18 changed files with 118 additions and 50 deletions
+4 -4
View File
@@ -7,11 +7,11 @@ import { createConverter, runProcess } from './native-office.mjs';
import { patchOffice, target } from './install-office-preview.mjs';
test('patch is exact, version gated and refuses repeat application', () => {
const patched = patchOffice(target, '0.2.1-rc.2', '0.2.1-rc.2');
const patched = patchOffice(target, '0.2.1-rc.3', '0.2.1-rc.3');
assert.match(patched, /dsh-native-office/);
for (const source of ['', target + target, patched]) assert.throws(() => patchOffice(source, '0.2.1-rc.2', '0.2.1-rc.2'));
assert.throws(() => patchOffice(target, 'next', '0.2.1-rc.2'));
assert.throws(() => patchOffice(target, '0.2.1-rc.2', 'next'));
for (const source of ['', target + target, patched]) assert.throws(() => patchOffice(source, '0.2.1-rc.3', '0.2.1-rc.3'));
assert.throws(() => patchOffice(target, 'next', '0.2.1-rc.3'));
assert.throws(() => patchOffice(target, '0.2.1-rc.3', 'next'));
});
test('process cancellation, missing binary and failure are classified', async () => {