Skip to content

Commit

Permalink
More call site adjustment in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jszumski committed May 29, 2024
1 parent a304b61 commit 874d7e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ final class ViewAlignmentSnapshotTests: SnapshotTestCase {
targetView.backgroundColor = .lightGray
containerView.addSubview(targetView)

@MainActor
func addAlignedSubview(
receiverPosition: Position,
receiverLayoutDirection: UIUserInterfaceLayoutDirection,
Expand Down Expand Up @@ -402,6 +403,7 @@ final class ViewAlignmentSnapshotTests: SnapshotTestCase {
receiverView.transform = receiverTransform
containerView.addSubview(receiverView)

@MainActor
func updateMirrorViews() {
targetView.transform = .identity
targetFrameView.frame = targetView.frame.applying(targetView.transform.inverted())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ final class ViewSpeadingSnapshotTests: SnapshotTestCase {
greenView.backgroundColor = .green
container.addSubview(greenView)

@MainActor
func verifySnapshot(
margin: CGFloat = 0,
inRect rect: CGRect? = nil,
Expand Down Expand Up @@ -110,6 +111,7 @@ final class ViewSpeadingSnapshotTests: SnapshotTestCase {
greenView.backgroundColor = .green
container.addSubview(greenView)

@MainActor
func verifySnapshot(
margin: CGFloat = 0,
inRect rect: CGRect? = nil,
Expand Down

0 comments on commit 874d7e0

Please sign in to comment.