From a06cfe194c38e1e80294cbe66608829b5dae35ce Mon Sep 17 00:00:00 2001 From: Martin Wildfeuer Date: Fri, 22 Jul 2016 15:58:08 +0200 Subject: [PATCH] Added liveBlur appearance test --- Tests/AppearanceTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/AppearanceTests.swift b/Tests/AppearanceTests.swift index 71d1555e..8dbe92c3 100644 --- a/Tests/AppearanceTests.swift +++ b/Tests/AppearanceTests.swift @@ -53,6 +53,7 @@ class AppearanceTests: XCTestCase { XCTAssertEqual(overlay.blurRadius, 8) XCTAssertTrue(overlay.blurEnabled) XCTAssertEqual(overlay.opacity, 0.7) + XCTAssertFalse(overlay.liveBlur) } func testCustomAppearance() { @@ -77,6 +78,7 @@ class AppearanceTests: XCTestCase { ov.color = UIColor.yellowColor() ov.blurRadius = 20 ov.blurEnabled = false + ov.liveBlur = true ov.opacity = 0.5 // Customize default button appearance @@ -105,6 +107,7 @@ class AppearanceTests: XCTestCase { XCTAssertEqual(ov.blurRadius, 20) XCTAssertFalse(ov.blurEnabled) XCTAssertEqual(ov.opacity, 0.5) + XCTAssertTrue(ov.liveBlur) // Button customized appearance XCTAssertEqual(db.titleFont, UIFont(name: "HelveticaNeue", size: 14)!)