Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeep committed Aug 4, 2024
1 parent b925a81 commit 1981fa0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Proton/Tests/Attachments/ViewAttachmentSnapshotTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,13 @@ class ViewAttachmentSnapshotTests: SnapshotTestCase {
}

private func makeTextFieldAttachment(text: NSAttributedString) -> Attachment {
attachmentOffset = CGPoint(x: 0, y: -5)
attachmentOffset = CGPoint(x: 0, y: -4.5)
let textField = AutogrowingTextField()
let textFieldAttachment = Attachment(textField, size: .matchContent)
textFieldAttachment.offsetProvider = self
textField.attributedText = text
textField.borderStyle = .roundedRect
textField.layer.borderColor = UIColor.black.cgColor
textField.layer.borderWidth = 1
return textFieldAttachment
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1981fa0

Please sign in to comment.