From 8b5b837b69a39b82c9eee3a91c0f93420988962e Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 14 Aug 2022 11:47:18 -0400 Subject: [PATCH] Update ThemerTests.swift --- Clocker/ClockerUnitTests/ThemerTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Clocker/ClockerUnitTests/ThemerTests.swift b/Clocker/ClockerUnitTests/ThemerTests.swift index 40e81da..8fa8417 100644 --- a/Clocker/ClockerUnitTests/ThemerTests.swift +++ b/Clocker/ClockerUnitTests/ThemerTests.swift @@ -228,6 +228,9 @@ class ThemerTests: XCTestCase { } private func testSubject(subject: Themer, withExpectatations expectations: ThemeExpectations) { + // Symbol images were introduced in 11.0; Clocker still supports 10.13+ so few asserts below that rely on symbol images will fail. + let eligibleOSVersion = ProcessInfo.processInfo.isOperatingSystemAtLeast(OperatingSystemVersion(majorVersion: 11, minorVersion: 0, patchVersion: 0)) + XCTAssertEqual(subject.sliderKnobColor(), expectations.expectedSliderKnobColor) XCTAssertEqual(subject.sliderRightColor(), expectations.expectedSliderRightColor) XCTAssertEqual(subject.mainBackgroundColor(), expectations.expectedBackgroundColor)