From c43c06eea224619ad82892859191ee7f05687571 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sat, 4 Jun 2016 11:00:46 -0500 Subject: [PATCH] fixed Linux support --- Sources/CacaoTests/FontTests.swift | 8 ++++---- Sources/CacaoTests/TestStyleKit.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/CacaoTests/FontTests.swift b/Sources/CacaoTests/FontTests.swift index 9e689d9..a544fa9 100644 --- a/Sources/CacaoTests/FontTests.swift +++ b/Sources/CacaoTests/FontTests.swift @@ -15,10 +15,10 @@ final class FontTests: XCTestCase { func testCreateSimpleFont() { - guard let font = Font(name: "MicrosoftSansSerif", size: 17) + guard let font = Font(name: "TimesNewRoman", size: 17) else { XCTFail("Could not create font"); return } - let expectedFullName = "Microsoft Sans Serif" + let expectedFullName = "Times New Roman" XCTAssert(font.name == font.silicaFont.name) XCTAssert(expectedFullName == font.silicaFont.scaledFont.fullName, "\(expectedFullName) == \(font.silicaFont.scaledFont.fullName)") @@ -26,10 +26,10 @@ final class FontTests: XCTestCase { func testCreateTraitFont() { - guard let font = Font(name: "MicrosoftSansSerif-Bold", size: 17) + guard let font = Font(name: "TimesNewRoman-Bold", size: 17) else { XCTFail("Could not create font"); return } - let expectedFullName = "Microsoft Sans Serif" + let expectedFullName = "Times New Roman" XCTAssert(font.name == font.silicaFont.name) XCTAssert(expectedFullName == font.silicaFont.scaledFont.fullName, "\(expectedFullName) == \(font.silicaFont.scaledFont.fullName)") diff --git a/Sources/CacaoTests/TestStyleKit.swift b/Sources/CacaoTests/TestStyleKit.swift index f7bb584..b14411f 100644 --- a/Sources/CacaoTests/TestStyleKit.swift +++ b/Sources/CacaoTests/TestStyleKit.swift @@ -21,7 +21,7 @@ public func NSString(string: String) -> String { return string } -public class TestStyleKit : NSObject { +public class TestStyleKit { //// Cache