aboutsummaryrefslogtreecommitdiff
path: root/tests/test-music-config--after-playlist-clear.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(music): queue all dired-marked files and de-anonymize header adviceCraig Jennings2026-07-201-0/+25
| | | | | | cj/music-add-dired-selection gated dired-get-marked-files behind use-region-p, so files marked with m fell to the single-file branch and only the point file was queued. dired-get-marked-files already honors marks, a region, or point on its own. The header-refresh advice on the four EMMS toggles was an anonymous lambda, which can't be advice-removed and stacked a copy on every :config reload. It's now a named function installed remove-then-add.
* feat(music): add test coverage for 7 functions, refactor with extracted helpersCraig Jennings2026-04-011-0/+116
Add 47 new unit tests across 7 test files covering playlist-modified-p, assert-valid-playlist-file, playlist-tracks, create-radio-station, ensure-playlist-buffer, after-playlist-clear, and header-text. Extract three helpers to reduce duplication: assert-m3u-files-exist (dedupes 2 identical guards), sync-playlist-file (dedupes 3 state-sync patterns), and select-m3u-file (reusable M3U selection with cancel). Simplify append-track-to-playlist nesting from 6 to 4 levels. Delete unused cj/music-keymap-prefix variable.