broken changes

This commit is contained in:
Mark Gregory
2026-11-05 21:27:41 +00:00
parent 78c4411fa6
commit d348aa76ca
5 changed files with 27 additions and 29 deletions
+4
View File
@@ -2336,6 +2336,8 @@ extension KJamsCloneTests {
XCTAssertEqual(model.player.currentSongID,id);XCTAssertEqual(model.dj.a.player.currentSongID,id)
}
model.dj.automix.enqueue([song,song]);try await selectTab(1)
let libraryScroll = try XCTUnwrap(descendants(host).compactMap{$0 as? NSScrollView}.filter{$0.bounds.width > 600 && !$0.isHiddenOrHasHiddenAncestor}.max(by:{$0.bounds.height < $1.bounds.height}))
XCTAssertGreaterThan(libraryScroll.bounds.height,380,"DJ library grows into the remaining workspace height")
if let rep = host.bitmapImageRepForCachingDisplay(in:host.bounds) { host.cacheDisplay(in:host.bounds,to:rep);try XCTUnwrap(rep.representation(using:.png,properties:[:])).write(to:URL(fileURLWithPath:"/private/tmp/kjmix-xml-mappings/dj-tab.png")) }
try await selectTab(0)
if let rep = host.bitmapImageRepForCachingDisplay(in:host.bounds) { host.cacheDisplay(in:host.bounds,to:rep);try XCTUnwrap(rep.representation(using:.png,properties:[:])).write(to:URL(fileURLWithPath:"/private/tmp/kjmix-xml-mappings/karaoke-tab.png")) }
@@ -2355,6 +2357,8 @@ extension KJamsCloneTests {
XCTAssertEqual(move.range(x:900,duration:6),4...6)
let create = DJLoopDrag(x:400,viewport:0,span:6,width:600,loop:nil,create:true)
XCTAssertEqual(create.range(x:200,duration:6),2...4)
let shortOverview = DJLoopDrag(x:204,viewport:0,span:300,width:600,loop:100...104,create:false)
XCTAssertEqual(shortOverview.mode,.move,"Short loops still have a draggable centre in an overview")
let seek = DJLoopDrag(x:500,viewport:0,span:6,width:600,loop:loop,create:false)
XCTAssertEqual(seek.mode,.seek);XCTAssertNil(seek.range(x:400,duration:6))
let narrow = try XCTUnwrap(left.range(x:500,duration:6))