blockchainethereumblockchain-walleterc20erc721walletxdaidappdecentralizederc1155erc875iosswifttokens
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
910 B
30 lines
910 B
//
|
|
// SeedPhraseBackupIntroductionViewControllerTests.swift
|
|
// AlphaWalletTests
|
|
//
|
|
// Created by Vladyslav Shepitko on 10.08.2020.
|
|
//
|
|
|
|
import XCTest
|
|
@testable import AlphaWallet
|
|
import AlphaWalletFoundation
|
|
|
|
class SeedPhraseBackupIntroductionViewControllerTests: XCTestCase {
|
|
|
|
func testContentHeightFits() throws {
|
|
let controller = SeedPhraseBackupIntroductionViewController(account: .make())
|
|
controller.configure()
|
|
controller.view.layoutIfNeeded()
|
|
|
|
XCTAssertFalse(controller.descriptionLabel1.overlaps(other: controller.buttonsBar, in: controller))
|
|
}
|
|
|
|
}
|
|
|
|
private extension UIView {
|
|
func overlaps(other view: UIView, in viewController: UIViewController) -> Bool {
|
|
let frame = self.convert(self.bounds, to: viewController.view)
|
|
let otherFrame = view.convert(view.bounds, to: viewController.view)
|
|
return frame.intersects(otherFrame)
|
|
}
|
|
}
|
|
|