Compare commits

..

7 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
c2ad23128c Initial plan 2026-03-09 04:00:02 +00:00
kl
9e68025c3b test(e2e): address remaining copilot review comments 2026-03-09 11:59:13 +08:00
kl
b5c95b261d test(e2e): keep legacy zip temp dir ignored 2026-03-09 11:36:37 +08:00
kl
21be47f560 test(e2e): make tgz fixture gzip header deterministic 2026-03-09 11:29:52 +08:00
kl
8dd9b78c48 test(e2e): add rar smoke coverage and align archive deps 2026-03-09 11:19:27 +08:00
kl
4ab383709c test: address copilot archive fixture review feedback 2026-03-09 11:09:52 +08:00
kl
4690a5353b test(e2e): expand archive coverage to tar/tgz/7z/rar 2026-03-09 10:12:48 +08:00
2 changed files with 3 additions and 23 deletions

View File

@@ -202,13 +202,6 @@ body { margin: 0; }
src: url(./fonts/simhei.woff);
}
/* OFD 表格竖线溢出修复 */
/* cnofd 库在 SVG 上设置了 inline style overflow:visible导致表格中间竖线的 */
/* path 元素超出 SVG 容器高度后仍然可见。使用 !important 覆盖 inline style。 */
#content svg {
overflow: hidden !important;
}
.gray {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);

View File

@@ -87,15 +87,9 @@ try {
ensureArchive('sample.7z', out => {
try {
execFileSync('7z', ['a', '-bd', '-y', '-mtc=off', '-mta=off', '-mtm=off', out, 'inner.txt'], {
cwd: archiveWork,
});
} catch (err) {
if (err && typeof err === 'object' && 'code' in err && err.code === 'ENOENT') {
execFileSync('bsdtar', ['-a', '-cf', out, 'inner.txt'], { cwd: archiveWork });
} else {
throw err;
}
execFileSync('7z', ['a', '-bd', '-y', out, 'inner.txt'], { cwd: archiveWork });
} catch {
execFileSync('bsdtar', ['-a', '-cf', out, 'inner.txt'], { cwd: archiveWork });
}
});
} catch (err) {
@@ -105,13 +99,6 @@ try {
fs.rmSync(archiveWork, { recursive: true, force: true });
}
const rarFixture = path.join(fixturesDir, 'sample.rar');
if (!fs.existsSync(rarFixture)) {
throw new Error(
'Missing required fixture tests/e2e/fixtures/sample.rar. Restore it from git (e.g. `git checkout -- tests/e2e/fixtures/sample.rar`) before running e2e.'
);
}
// 1x1 png
write(
'sample.png',