Skip to content

Commit

Permalink
Added liveBlur appearance test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfire committed Jul 22, 2016
1 parent 344f519 commit a06cfe1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/AppearanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class AppearanceTests: XCTestCase {
XCTAssertEqual(overlay.blurRadius, 8)
XCTAssertTrue(overlay.blurEnabled)
XCTAssertEqual(overlay.opacity, 0.7)
XCTAssertFalse(overlay.liveBlur)
}

func testCustomAppearance() {
Expand All @@ -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
Expand Down Expand Up @@ -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)!)
Expand Down

0 comments on commit a06cfe1

Please sign in to comment.