Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Remove unnecessary transaction blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Verkoeyen committed Nov 28, 2017
1 parent cce99cf commit 8a5d4d4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/unit/QuartzCoreBehavioralTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ class QuartzCoreBehavioralTests: XCTestCase {
for (keyPath, value) in properties {
rebuildLayer()

CATransaction.begin()
CATransaction.setAnimationDuration(0.5)
layer.setValue(value, forKeyPath: keyPath.rawValue)
CATransaction.commit()

XCTAssertNotNil(layer.animationKeys(),
"Expected \(keyPath.rawValue) to generate at least one animation.")
Expand Down Expand Up @@ -92,10 +89,7 @@ class QuartzCoreBehavioralTests: XCTestCase {
for (keyPath, value) in properties {
rebuildLayer()

CATransaction.begin()
CATransaction.setAnimationDuration(0.5)
layer.setValue(value, forKeyPath: keyPath.rawValue)
CATransaction.commit()

XCTAssertNotNil(layer.animationKeys(),
"Expected \(keyPath.rawValue) to generate at least one animation.")
Expand All @@ -117,10 +111,7 @@ class QuartzCoreBehavioralTests: XCTestCase {
for (keyPath, value) in properties {
rebuildLayer()

CATransaction.begin()
CATransaction.setAnimationDuration(0.5)
layer.setValue(value, forKeyPath: keyPath.rawValue)
CATransaction.commit()

XCTAssertNil(layer.animationKeys(),
"Expected \(keyPath.rawValue) not to generate any animations.")
Expand Down

0 comments on commit 8a5d4d4

Please sign in to comment.