Skip to content

Commit ff2f467

Browse files
committed
Add testNonAnimatedBoundsSize test
1 parent d8aab01 commit ff2f467

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Tests/WaveTests/AnimatableUIViewPropertyTests.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@ final class UIViewAnimatablePropertyTests: XCTestCase {
9797
}
9898
}
9999

100+
func testNonAnimatedBoundsSize() {
101+
let v = UIView()
102+
103+
let initialBoundsSize = CGSize(width: 50, height: 50)
104+
let targetFrameSize = CGSize(width: 25, height: 25)
105+
106+
v.bounds.size = initialBoundsSize
107+
v.animator.scale = CGPoint(x: 0.5, y: 0.5)
108+
109+
XCTAssertEqual(v.bounds.size, initialBoundsSize)
110+
XCTAssertEqual(v.frame.size, targetFrameSize)
111+
}
112+
100113
func testCenter() {
101114
let view = UIView()
102115

0 commit comments

Comments
 (0)