| | |
| | | func testAppIdentity() { |
| | | XCTAssertEqual(AlignerAppInfo.name, "Aligner") |
| | | XCTAssertEqual(AlignerAppInfo.bundleIdentifier, "com.ar.Aligner") |
| | | XCTAssertEqual(AlignerAppInfo.minimumMacOSVersion, "26.0") |
| | | XCTAssertEqual(AlignerAppInfo.minimumMacOSVersion, "14.0") |
| | | } |
| | | |
| | | func testRound0OnlyDefinesQuickSwitchEntryPoint() { |
| | |
| | | subroleDescription: "standard" |
| | | ) |
| | | ) |
| | | } |
| | | |
| | | func testWindowEnumerationPolicyRejectsLowConfidenceAXOnlyRegularWindows() { |
| | | XCTAssertFalse(WindowEnumerationPolicy.shouldIncludeAXOnlyRecord( |
| | | identifierSource: .cgWindow, |
| | | isMinimized: false, |
| | | isFullscreen: false, |
| | | spaceIDs: [] |
| | | )) |
| | | XCTAssertTrue(WindowEnumerationPolicy.shouldIncludeAXOnlyRecord( |
| | | identifierSource: .cgWindow, |
| | | isMinimized: true, |
| | | isFullscreen: false, |
| | | spaceIDs: [] |
| | | )) |
| | | XCTAssertTrue(WindowEnumerationPolicy.shouldIncludeAXOnlyRecord( |
| | | identifierSource: .cgWindow, |
| | | isMinimized: false, |
| | | isFullscreen: true, |
| | | spaceIDs: [42] |
| | | )) |
| | | XCTAssertFalse(WindowEnumerationPolicy.shouldIncludeAXOnlyRecord( |
| | | identifierSource: .syntheticAX, |
| | | isMinimized: false, |
| | | isFullscreen: false, |
| | | spaceIDs: [] |
| | | )) |
| | | } |
| | | |
| | | func testMinimizedWindowFallbackPolicyAvoidsOccupiedSyntheticIDCollisions() { |
| | |
| | | XCTAssertTrue(templates.allSatisfy { $0.contentRows > 0 }) |
| | | } |
| | | |
| | | func testSkeletonThumbnailPaletteStaysQuietForFallbackState() { |
| | | XCTAssertLessThanOrEqual(SkeletonThumbnailPalette.headerAlpha, 0.10) |
| | | XCTAssertLessThanOrEqual(SkeletonThumbnailPalette.contentRowAlpha, 0.08) |
| | | XCTAssertLessThanOrEqual(SkeletonThumbnailPalette.accentStripeAlpha, 0.30) |
| | | XCTAssertGreaterThanOrEqual(SkeletonThumbnailPalette.titleBandAlpha, 0.80) |
| | | } |
| | | |
| | | @MainActor |
| | | func testNativeSkeletonThumbnailProviderProducesValidImages() { |
| | | let provider = NativeSkeletonThumbnailProvider() |