0.10.6
This commit is contained in:
commit
92660a4ba0
228 files changed
+24496
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import XCTest
|
||||
@testable import Luma
|
||||
|
||||
final class MediaPickerSelectionPolicyTests: XCTestCase {
|
||||
func testLivePhotoPrefersStillImageButRetainsVideoFallback() {
|
||||
XCTAssertEqual(
|
||||
MediaPickerSelectionPolicy.preferredOrder(
|
||||
supportsImage: true,
|
||||
supportsVideo: true
|
||||
),
|
||||
[.photo, .video]
|
||||
)
|
||||
}
|
||||
|
||||
func testVideoOnlyAssetPrefersMovieButRetainsPhotoFallback() {
|
||||
XCTAssertEqual(
|
||||
MediaPickerSelectionPolicy.preferredOrder(
|
||||
supportsImage: false,
|
||||
supportsVideo: true
|
||||
),
|
||||
[.video, .photo]
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user