ElyMark: each print job logs its outcome; the test checks both jobs (M-04)

The window test now saves print jobs to a file (ELY_PRINT_TO) and
requires two distinct jobs printed ok and readable PDF text, not
a count of Chromium's log lines. It runs on macOS only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-10 04:27:06 -04:00
1 parent d5f94e6e7a
commit fa5c0b7a75
5 files changed
+22 -18

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
FAIL
tests/scripts/mark-output.sh:199 — M-04 的并发回归只数 `web: printed` 日志,没有核对成功、作业身份、PDF 内容或系统打印面板;该日志在 CEF 回调中写出,早于 `Desk` 接收 `Event::Printed`。具体失败场景:两次打印均回报 `ok false`,没有生成 PDF、没有打开打印面板,测试仍通过;即使第一份完成事件无人接收,仅留下 CEF 日志,也无法被这条断言发现。本轮在 WSL 提取并执行原测试第 193–203 行,以两个 `web: printed /missing/print-N.pdf ok false` 回报替代实际打印,未创建文件或面板,检查仍以 0 退出;这是断言探针,未运行 macOS 窗口测试。现有 Cargo 测试也没有覆盖并发打印作业的保留与交付。修复方向:可控地让两份作业重叠并分别完成,验证第一份仍被保留、各自完成事件交付成功、输出路径不同且内容对应请求;窗口测试须确认两份可读 PDF 或两次真实打印面板,不能把任意完成日志当成成功。
+1
View File
@@ -0,0 +1 @@
PASS