Files
lintunes/tests/test_round90.py
T
trav ab25a6381b v0.58.1: the track list's headings run over the scrollbar's column
The vertical scrollbar now starts under the headings instead of beside
them, so the last heading gets the scrollbar's width back.
2026-10-16 22:48:03 -07:00

20 lines
750 B
Python

"""Round 90: the track list's headings run over the scrollbar's column."""
from lintunes.gui.track_table import TrackTableView
from tests.test_round29 import _local_track
def test_headings_span_the_scrollbar_and_dont_scroll_sideways(qapp, tmp_path):
view = TrackTableView()
view.model_.set_tracks([_local_track(tmp_path, i) for i in range(1, 80)])
view.resize(2400, 300)
view.show()
qapp.processEvents()
bar = view.verticalScrollBar()
assert bar.isVisible()
header = view.horizontalHeader()
assert header.geometry().right() == bar.parentWidget().geometry().right()
assert bar.geometry().top() >= header.height() # starts under them
assert view.horizontalScrollBar().maximum() == 0
view.close()