v0.51.2: album art sits in the empty art panel's own frame, below the list, instead of inside the list's frame
This commit is contained in:
@@ -136,24 +136,6 @@ def test_no_art_panel_sits_below_the_frame(qapp, tmp_path):
|
||||
window.close()
|
||||
|
||||
|
||||
def test_real_art_goes_inside_the_frame(qapp, tmp_path):
|
||||
from PyQt6.QtGui import QPixmap
|
||||
from lintunes.gui.sidebar import ART_RULE
|
||||
window, sidebar = _sidebar(qapp, tmp_path)
|
||||
art = sidebar.art
|
||||
pixmap = QPixmap(10, 10)
|
||||
pixmap.fill(QColor("red"))
|
||||
art._pixmap = pixmap
|
||||
art.has_art_changed.emit(True)
|
||||
art._fit_height()
|
||||
assert art.parentWidget() is sidebar.list_area
|
||||
assert art.height() == art.width() + ART_RULE
|
||||
art._pixmap = None
|
||||
art.set_track(None)
|
||||
assert art.parentWidget() is sidebar
|
||||
window.close()
|
||||
|
||||
|
||||
def test_tall_deboss_copies_a_short_panels_edges(qapp):
|
||||
"""Shaded ``like`` a 62 px panel, a 400 px one matches it row for row
|
||||
along the top, and is flat in the middle."""
|
||||
|
||||
Reference in New Issue
Block a user