-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Snapshot tests for UIViewFlexContainer
- Loading branch information
1 parent
ca76964
commit e526aca
Showing
297 changed files
with
256 additions
and
45 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
redwood-layout-uiview/RedwoodLayoutUIViewTests/UIViewFlexContainerTestHost.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import SnapshotTesting | ||
import RedwoodLayoutUIViewTestKt | ||
import UIKit | ||
|
||
final class UIViewFlexContainerTestHost: KotlinHostingXCTestCase<UIViewFlexContainerTest> { | ||
override class func initTest(name: String) -> UIViewFlexContainerTest { | ||
return UIViewFlexContainerTest(callback: Callback(named: name)) | ||
} | ||
} | ||
|
||
private class Callback : UIViewFlexContainerTestCallback { | ||
private let testName: String | ||
|
||
init(named testName: String) { | ||
self.testName = testName | ||
} | ||
|
||
func verifySnapshot(view: UIView, name: String?) { | ||
var snapshotName = testName | ||
if (name != nil) { | ||
snapshotName = "\(testName)-\(name!)" | ||
} | ||
assertSnapshot(of: view, as: .image, named: snapshotName, record: true) | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...Host/verifySnapshot-view-name.testChildWithUpdatedProperty-Optional-initial.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...Host/verifySnapshot-view-name.testChildWithUpdatedProperty-Optional-updated.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ainerTestHost/verifySnapshot-view-name.testChildWithUpdatedProperty-initial.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ainerTestHost/verifySnapshot-view-name.testChildWithUpdatedProperty-updated.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...nerTestHost/verifySnapshot-view-name.testColumnWithMainAxisAlignment_Center.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...stHost/verifySnapshot-view-name.testColumnWithMainAxisAlignment_SpaceAround.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...tHost/verifySnapshot-view-name.testColumnWithMainAxisAlignment_SpaceBetween.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ontainerTestHost/verifySnapshot-view-name.testContainerWithFixedHeightItems.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...xContainerTestHost/verifySnapshot-view-name.testContainerWithFixedSizeItems.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ContainerTestHost/verifySnapshot-view-name.testContainerWithFixedWidthItems.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...UIViewFlexContainerTestHost/verifySnapshot-view-name.testEmptyLayout_Column.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...__/UIViewFlexContainerTestHost/verifySnapshot-view-name.testEmptyLayout_Row.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...estHost/verifySnapshot-view-name.testLayoutWithConstraints_Column_Fill_Fill.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...estHost/verifySnapshot-view-name.testLayoutWithConstraints_Column_Fill_Wrap.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...estHost/verifySnapshot-view-name.testLayoutWithConstraints_Column_Wrap_Fill.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...estHost/verifySnapshot-view-name.testLayoutWithConstraints_Column_Wrap_Wrap.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...erTestHost/verifySnapshot-view-name.testLayoutWithConstraints_Row_Fill_Fill.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...erTestHost/verifySnapshot-view-name.testLayoutWithConstraints_Row_Fill_Wrap.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...erTestHost/verifySnapshot-view-name.testLayoutWithConstraints_Row_Wrap_Fill.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...erTestHost/verifySnapshot-view-name.testLayoutWithConstraints_Row_Wrap_Wrap.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ost/verifySnapshot-view-name.testLayoutWithCrossAxisAlignment_Column_Center.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...stHost/verifySnapshot-view-name.testLayoutWithCrossAxisAlignment_Column_End.png
Oops, something went wrong.
Oops, something went wrong.