Skip to content

[2006] 基于 Windows 平台修复 C++ 测试#3793

Merged
MoonL79 merged 4 commits into
mainfrom
yuki/2006/test-fix-windows
Jun 23, 2026
Merged

[2006] 基于 Windows 平台修复 C++ 测试#3793
MoonL79 merged 4 commits into
mainfrom
yuki/2006/test-fix-windows

Conversation

@Yuki-Nagori

Copy link
Copy Markdown
Contributor

No description provided.

Yuki-Nagori and others added 4 commits June 23, 2026 16:46
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- smart_font_test: CJK 字体按平台区分 (SimSun / Noto CJK SC)
- tests/Base: 新增统一的 cleanup_qt_top_level_widgets() 清理顶层窗口
- qt_pdf/chat/tab 测试接入 cleanup, 避免窗口泄漏导致套件卡死与 0xC000013A
- template_utils_test: 改删 LiiiSTEM/library 子目录 + 重试, 修复 Windows 文件锁时序
- qt_pdf_reader_widget: drag 判定改用 viewport-local 坐标, 修复 link click 误判
- table_performance_test: 删除无效的 QVERIFY(time>=0) 性能测试与死代码
- CLAUDE.md: 新增 Qt 窗口测试规范

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
展开第 4 节: 背景(browse 工具的 click/drag 区分规则)、Bug 根因
(测试构造的事件 globalPosition 默认 (0,0) 与 press 真实坐标差距巨大
导致误判 drag)、修复(viewport-local 坐标)、生产鲁棒性收益(多屏/
窗口拖动/输入设备)、影响范围。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

@MoonL79 MoonL79 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MoonL79 MoonL79 merged commit e5d7cc2 into main Jun 23, 2026
4 checks passed
@MoonL79 MoonL79 deleted the yuki/2006/test-fix-windows branch June 23, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants