test(web): simplify suite console assertions filter the Emscripten syscall stub
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

__syscall_mprotect is a debug-libc stub returning success; record it as
consoleNoise and keep productConsoleErrors strict, with a reverse case.
Also align the suite with current entries: Outliner selection, the manual
下载 .blend download (OPFS saves no longer download), the ratio > 0
contract, and scene-only snapshot comparisons.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-29 05:10:19 +08:00
parent 390d487eb8
commit 68b19d37dc
3 changed files with 116 additions and 35 deletions

View File

@@ -118,4 +118,4 @@ node tools/web/generate-decimate-golden.mjs \
### 残余补充
- 用例证据 JSON 由运行器归档到回执 `artifacts/evidence/`;Playwright 仅对失败用例保留附件路径,运行器按本次运行时间过滤 `web/test-results/**/decimate-*.json` 复制。
- `web/tests/e2e/mesh-simplify-production.spec.ts` 当前失败于「控制台错误必须为空」断言(记录里只有 `warning: unsupported syscall: __syscall_mprotect`),几何断言通过;与本次改动的关系未做 A/B 归因,单独排查。
- `web/tests/e2e/mesh-simplify-production.spec.ts` 控制台断言残余**已关闭**(回执 `tests/golden/WBV2-P1424-001/simplify-console-20261129`,候选 wasm `f0a528ae…`,12 例通过):`__syscall_mprotect` 是 Emscripten 调试版 libc 的系统调用桩(`return 0`,仅非 NDEBUG 打印),按窄规则过滤且原始文本仍进回执;同批修正 Outliner 选择器、OPFS 保存改走「下载 .blend」入口、COLLAPSE 比例 0 契约与快照会话状态比较。