修复 Studio 失败测试并新增合并门禁

把丢失的 box 录像放回 apps/studio/tests/data/,修掉第 3 节 3–10 号与两处过时测试桩,
注册 timing 标记并让根目录收集零错误;新增 tools/gate.ps1 与可选的 pre-push 钩子。
验证:studio 524 通过 19 跳过、shared 467 通过 18 跳过、ui_check 632 项 0 失败、gate.ps1 退出码 0。
细节见 docs/test-repair-plan.zh.md。
This commit is contained in:
ykcheungab
2026-10-18 19:24:31 +08:00
parent dcabd547fa
commit 433b76e43c
38 changed files with 1036 additions and 171 deletions
+9 -5
View File
@@ -49,13 +49,13 @@ from orisys_studio.scene3d.asset_source import (
)
from PySide6.QtCore import Signal
from PySide6.QtWidgets import QWidget
from tests.conftest import (
from _studio_helpers import (
finish_run as _finish,
)
from tests.conftest import (
from _studio_helpers import (
running_window as _running_window,
)
from tests.conftest import (
from _studio_helpers import (
show_window as _show,
)
@@ -1131,10 +1131,14 @@ def test_the_replay_view_shows_the_pane_and_says_where_the_field_comes_from(
assert "回放" in label or "Replay" in label, label
# A running pass means the pixels are recomputed, and the label must say so.
# Compared through the locale key rather than a word from it: ``c0a10e6`` reworded
# this line ("重算" → "分析结果:非录制时的测量值"), and the claim being defended is
# "*which* source the pane says it is showing", not the phrasing.
window._recompute_running = True
window._apply_panel_visibility()
label = view.panel.source_label.text()
assert "重算" in label or "Recomputed" in label, label
assert view.panel.source_label.text() == t("scene3d.source_recompute"), (
view.panel.source_label.text()
)
# Stopping the pass must clear the picture, not leave the last frame up.
window._recompute_running = False