Skip to content

Commit

Permalink
Fix Xcode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Aug 28, 2024
1 parent a8f635d commit 4bdd201
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tests/ThemeParkTests/XcodeThemeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ final class XcodeThemeTests: XCTestCase {
func testSemanticQueries() throws {
let url = try XCTUnwrap(Bundle.module.url(forResource: "Default (Light)", withExtension: "xccolortheme", subdirectory: "Resources"))
let theme = try XcodeTheme(contentsOf: url)
let font = PlatformFont.systemFont(ofSize: 10.0)

XCTAssertEqual(
theme.style(for: .editor(.background)),
Style(color: PlatformColor(hex: "#ffffff")!)
Style(color: PlatformColor(hex: "#ffffff")!, font: font)
)
XCTAssertEqual(
theme.style(for: .syntax(.text)),
Style(color: PlatformColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.85))
Style(color: PlatformColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.85), font: font)
)
XCTAssertEqual(
theme.style(for: .syntax(.comment(nil))),
Style(color: PlatformColor(red: 0.36526, green: 0.421879, blue: 0.475154, alpha: 1.0))
Style(color: PlatformColor(red: 0.36526, green: 0.421879, blue: 0.475154, alpha: 1.0), font: font)
)
XCTAssertEqual(
theme.style(for: .gutter(.background)),
Expand Down

0 comments on commit 4bdd201

Please sign in to comment.