[1254] 增加基于 pynput 的端到端自动化测试并完善各级标题插入支持 - #4478
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
任务简述
关联任务文档:
devel/1254.md改动内容
TeXmacs/tests/python/1254.py,基于pynput模拟键鼠交互,覆盖从chapter、section、subsection、subsubsection、paragraph、subparagraph各级标题内部插入同级与跨级标题的完整流程,并校验 AST 树独立性与完整性。text-kbd.scm与text-menu.scm中将paragraph、subparagraph、appendix接入smart-insert-heading,确保在标题内部触发插入时均能先退出结构并换行。TeXmacs/tests/1254.scm增加chapter、paragraph、subparagraph的连续嵌套测试用例。1257.md更新devel/1254.md中的手动与自动化测试步骤说明。本地测试
xmake b smart-heading-test && xmake r smart-heading-test MOGAN_TEST_GUI=1 xmake r 1254 python3 TeXmacs/tests/python/1254.py所有测试均已本地通过。