Update ViewInspector to 0.9.1
This commit is contained in:
parent
4b7cbfcf06
commit
ac0e73b1f8
|
@ -1436,8 +1436,8 @@
|
|||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/nalexn/ViewInspector.git";
|
||||
requirement = {
|
||||
kind = upToNextMajorVersion;
|
||||
minimumVersion = 0.3.11;
|
||||
kind = exactVersion;
|
||||
version = 0.9.1;
|
||||
};
|
||||
};
|
||||
/* End XCRemoteSwiftPackageReference section */
|
||||
|
|
|
@ -23,9 +23,9 @@ class WebImageTests: XCTestCase {
|
|||
let imageView = WebImage(url: imageUrl)
|
||||
let introspectView = imageView.onSuccess { image, data, cacheType in
|
||||
#if os(macOS)
|
||||
let displayImage = try? imageView.inspect().group().image(0).nsImage()
|
||||
let displayImage = try? imageView.inspect().group().image(0).actualImage.nsImage()
|
||||
#else
|
||||
let displayImage = try? imageView.inspect().group().image(0).cgImage()
|
||||
let displayImage = try? imageView.inspect().group().image(0).actualImage().cgImage()
|
||||
#endif
|
||||
XCTAssertNotNil(displayImage)
|
||||
expectation.fulfill()
|
||||
|
@ -47,10 +47,10 @@ class WebImageTests: XCTestCase {
|
|||
if let animatedImage = image as? SDAnimatedImage {
|
||||
XCTAssertTrue(imageView.isAnimating)
|
||||
#if os(macOS)
|
||||
let displayImage = try? imageView.inspect().group().image(0).nsImage()
|
||||
let displayImage = try? imageView.inspect().group().image(0).actualImage().nsImage()
|
||||
let size = displayImage?.size
|
||||
#else
|
||||
let displayImage = try? imageView.inspect().group().image(0).cgImage()
|
||||
let displayImage = try? imageView.inspect().group().image(0).actualImage().cgImage()
|
||||
let size = CGSize(width: displayImage?.width ?? 0, height: displayImage?.height ?? 0)
|
||||
#endif
|
||||
XCTAssertNotNil(displayImage)
|
||||
|
@ -161,11 +161,11 @@ class WebImageTests: XCTestCase {
|
|||
let imageView = WebImage(url: imageUrl)
|
||||
let introspectView = imageView.onSuccess { image, data, cacheType in
|
||||
#if os(macOS)
|
||||
let displayImage = try? imageView.inspect().group().image(0).nsImage()
|
||||
let displayImage = try? imageView.inspect().group().image(0).actualImage().nsImage()
|
||||
XCTAssertNotNil(displayImage)
|
||||
#else
|
||||
let displayImage = try? imageView.inspect().group().image(0).cgImage()
|
||||
let orientation = try? imageView.inspect().group().image(0).orientation()
|
||||
let displayImage = try? imageView.inspect().group().image(0).actualImage().cgImage()
|
||||
let orientation = try? imageView.inspect().group().image(0).actualImage().orientation()
|
||||
XCTAssertNotNil(displayImage)
|
||||
XCTAssertEqual(orientation, .leftMirrored)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue