native macOS codings agent orchestrator prowl.onev.cat
Something went wrong. Try again.
Swift
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455import Testing
@testable import Prowl
struct SidebarDragSupportTests { @Test func dropIndicatorOnlyDrawsOneEdgeForInteriorDestinations() { #expect( SidebarDropIndicatorEdge.edge( targetedDestination: 1, rowIndex: 0, rowCount: 3 ) == .none ) #expect( SidebarDropIndicatorEdge.edge( targetedDestination: 1, rowIndex: 1, rowCount: 3 ) == .top ) }
@Test func dropIndicatorDrawsTopAndFinalBottomBoundaries() { #expect( SidebarDropIndicatorEdge.edge( targetedDestination: 0, rowIndex: 0, rowCount: 3 ) == .top ) #expect( SidebarDropIndicatorEdge.edge( targetedDestination: 3, rowIndex: 2, rowCount: 3 ) == .bottom ) }
@Test func dropIndicatorHidesWithoutTarget() { #expect( SidebarDropIndicatorEdge.edge( targetedDestination: nil, rowIndex: 1, rowCount: 3 ) == .none ) }}