改善 Studio 回放布局与传感器切换体验
缩短界面提示,保存上次视频目录,并防止旧结果绘入 Finger 3D。针对性测试及可见界面复测通过。
This commit is contained in:
@@ -304,9 +304,23 @@ def test_the_shipped_live_layout_makes_the_3d_pane_the_widest_panel():
|
||||
assert mesh > charts, DEFAULT_SPLITTER_SIZES
|
||||
live_mesh, live_image, live_charts, _cal_live = LIVE["live"]
|
||||
assert live_mesh > live_image and live_mesh > live_charts, LIVE["live"]
|
||||
assert LIVE["replay"] == LIVE["live"], (
|
||||
"the replay view is the live layout with another source"
|
||||
assert LIVE["replay"][2] > LIVE["replay"][0], (
|
||||
"history browsing needs more chart width than 3D width"
|
||||
)
|
||||
assert LIVE["live"][1] >= 400 and LIVE["replay"][1] >= 400, (
|
||||
"the 2D marker picture is too narrow to inspect"
|
||||
)
|
||||
|
||||
|
||||
def test_panel_stretch_keeps_each_views_priority_after_resizing():
|
||||
controller, parts = _controller(prefs={"view_preset": "live"}, sensor_type="finger")
|
||||
controller.show_finger_3d = True
|
||||
|
||||
controller.apply_panel_visibility()
|
||||
assert dict(parts["splitter"].stretches) == {0: 5, 1: 4, 2: 4, 3: 0}
|
||||
|
||||
controller.apply_preset("replay")
|
||||
assert dict(parts["splitter"].stretches) == {0: 4, 1: 4, 2: 5, 3: 0}
|
||||
|
||||
|
||||
def test_the_calibration_panel_toggle_is_the_calibration_view_switch():
|
||||
|
||||
Reference in New Issue
Block a user