Fix the test case project
This commit is contained in:
parent
abd9102f6b
commit
5a5690e2dc
|
@ -34,6 +34,8 @@
|
||||||
322E0E2228D332130003A55F /* Images.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 322E0DF228D331A20003A55F /* Images.bundle */; };
|
322E0E2228D332130003A55F /* Images.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 322E0DF228D331A20003A55F /* Images.bundle */; };
|
||||||
322E0E2328D332130003A55F /* Images.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 322E0DF228D331A20003A55F /* Images.bundle */; };
|
322E0E2328D332130003A55F /* Images.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 322E0DF228D331A20003A55F /* Images.bundle */; };
|
||||||
326B0D712345C01900D28269 /* DetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 326B0D702345C01900D28269 /* DetailView.swift */; };
|
326B0D712345C01900D28269 /* DetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 326B0D702345C01900D28269 /* DetailView.swift */; };
|
||||||
|
327B90F228DC4EBB003E8BD9 /* ViewInspector in Frameworks */ = {isa = PBXBuildFile; productRef = 327B90F128DC4EBB003E8BD9 /* ViewInspector */; };
|
||||||
|
327B90F428DC4EC0003E8BD9 /* ViewInspector in Frameworks */ = {isa = PBXBuildFile; productRef = 327B90F328DC4EC0003E8BD9 /* ViewInspector */; };
|
||||||
32DCFE9528D333E8001A17BF /* ViewInspector in Frameworks */ = {isa = PBXBuildFile; productRef = 32DCFE9428D333E8001A17BF /* ViewInspector */; };
|
32DCFE9528D333E8001A17BF /* ViewInspector in Frameworks */ = {isa = PBXBuildFile; productRef = 32DCFE9428D333E8001A17BF /* ViewInspector */; };
|
||||||
32E5290C2348A0C700EA46FF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32E5290B2348A0C700EA46FF /* AppDelegate.swift */; };
|
32E5290C2348A0C700EA46FF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32E5290B2348A0C700EA46FF /* AppDelegate.swift */; };
|
||||||
32E529102348A0C900EA46FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32E5290F2348A0C900EA46FF /* Assets.xcassets */; };
|
32E529102348A0C900EA46FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32E5290F2348A0C900EA46FF /* Assets.xcassets */; };
|
||||||
|
@ -220,6 +222,7 @@
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
833A61715BAAB31702D867CC /* Pods_SDWebImageSwiftUITests_macOS.framework in Frameworks */,
|
833A61715BAAB31702D867CC /* Pods_SDWebImageSwiftUITests_macOS.framework in Frameworks */,
|
||||||
|
327B90F228DC4EBB003E8BD9 /* ViewInspector in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -228,6 +231,7 @@
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
2E3D81A12C757E01A3C420F2 /* Pods_SDWebImageSwiftUITests_tvOS.framework in Frameworks */,
|
2E3D81A12C757E01A3C420F2 /* Pods_SDWebImageSwiftUITests_tvOS.framework in Frameworks */,
|
||||||
|
327B90F428DC4EC0003E8BD9 /* ViewInspector in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -517,9 +521,13 @@
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
|
327B90EE28DC4EAA003E8BD9 /* PBXTargetDependency */,
|
||||||
322E0E0728D331F00003A55F /* PBXTargetDependency */,
|
322E0E0728D331F00003A55F /* PBXTargetDependency */,
|
||||||
);
|
);
|
||||||
name = "SDWebImageSwiftUITests macOS";
|
name = "SDWebImageSwiftUITests macOS";
|
||||||
|
packageProductDependencies = (
|
||||||
|
327B90F128DC4EBB003E8BD9 /* ViewInspector */,
|
||||||
|
);
|
||||||
productName = "SDWebImageSwiftUITests macOS";
|
productName = "SDWebImageSwiftUITests macOS";
|
||||||
productReference = 322E0E0228D331F00003A55F /* SDWebImageSwiftUITests macOS.xctest */;
|
productReference = 322E0E0228D331F00003A55F /* SDWebImageSwiftUITests macOS.xctest */;
|
||||||
productType = "com.apple.product-type.bundle.unit-test";
|
productType = "com.apple.product-type.bundle.unit-test";
|
||||||
|
@ -537,9 +545,13 @@
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
|
327B90F028DC4EAE003E8BD9 /* PBXTargetDependency */,
|
||||||
322E0E1428D332050003A55F /* PBXTargetDependency */,
|
322E0E1428D332050003A55F /* PBXTargetDependency */,
|
||||||
);
|
);
|
||||||
name = "SDWebImageSwiftUITests tvOS";
|
name = "SDWebImageSwiftUITests tvOS";
|
||||||
|
packageProductDependencies = (
|
||||||
|
327B90F328DC4EC0003E8BD9 /* ViewInspector */,
|
||||||
|
);
|
||||||
productName = "SDWebImageSwiftUITests tvOS";
|
productName = "SDWebImageSwiftUITests tvOS";
|
||||||
productReference = 322E0E0F28D332050003A55F /* SDWebImageSwiftUITests tvOS.xctest */;
|
productReference = 322E0E0F28D332050003A55F /* SDWebImageSwiftUITests tvOS.xctest */;
|
||||||
productType = "com.apple.product-type.bundle.unit-test";
|
productType = "com.apple.product-type.bundle.unit-test";
|
||||||
|
@ -698,7 +710,7 @@
|
||||||
);
|
);
|
||||||
mainGroup = 607FACC71AFB9204008FA782;
|
mainGroup = 607FACC71AFB9204008FA782;
|
||||||
packageReferences = (
|
packageReferences = (
|
||||||
32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector.git" */,
|
32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */,
|
||||||
);
|
);
|
||||||
productRefGroup = 607FACD11AFB9204008FA782 /* Products */;
|
productRefGroup = 607FACD11AFB9204008FA782 /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
|
@ -1225,6 +1237,14 @@
|
||||||
target = 32E5291F2348A0D300EA46FF /* SDWebImageSwiftUIDemo-tvOS */;
|
target = 32E5291F2348A0D300EA46FF /* SDWebImageSwiftUIDemo-tvOS */;
|
||||||
targetProxy = 322E0E1328D332050003A55F /* PBXContainerItemProxy */;
|
targetProxy = 322E0E1328D332050003A55F /* PBXContainerItemProxy */;
|
||||||
};
|
};
|
||||||
|
327B90EE28DC4EAA003E8BD9 /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
productRef = 327B90ED28DC4EAA003E8BD9 /* ViewInspector */;
|
||||||
|
};
|
||||||
|
327B90F028DC4EAE003E8BD9 /* PBXTargetDependency */ = {
|
||||||
|
isa = PBXTargetDependency;
|
||||||
|
productRef = 327B90EF28DC4EAE003E8BD9 /* ViewInspector */;
|
||||||
|
};
|
||||||
32DCFE9728D333F1001A17BF /* PBXTargetDependency */ = {
|
32DCFE9728D333F1001A17BF /* PBXTargetDependency */ = {
|
||||||
isa = PBXTargetDependency;
|
isa = PBXTargetDependency;
|
||||||
productRef = 32DCFE9628D333F1001A17BF /* ViewInspector */;
|
productRef = 32DCFE9628D333F1001A17BF /* ViewInspector */;
|
||||||
|
@ -2044,7 +2064,7 @@
|
||||||
/* End XCConfigurationList section */
|
/* End XCConfigurationList section */
|
||||||
|
|
||||||
/* Begin XCRemoteSwiftPackageReference section */
|
/* Begin XCRemoteSwiftPackageReference section */
|
||||||
32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector.git" */ = {
|
32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */ = {
|
||||||
isa = XCRemoteSwiftPackageReference;
|
isa = XCRemoteSwiftPackageReference;
|
||||||
repositoryURL = "https://github.com/nalexn/ViewInspector.git";
|
repositoryURL = "https://github.com/nalexn/ViewInspector.git";
|
||||||
requirement = {
|
requirement = {
|
||||||
|
@ -2055,14 +2075,34 @@
|
||||||
/* End XCRemoteSwiftPackageReference section */
|
/* End XCRemoteSwiftPackageReference section */
|
||||||
|
|
||||||
/* Begin XCSwiftPackageProductDependency section */
|
/* Begin XCSwiftPackageProductDependency section */
|
||||||
|
327B90ED28DC4EAA003E8BD9 /* ViewInspector */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */;
|
||||||
|
productName = ViewInspector;
|
||||||
|
};
|
||||||
|
327B90EF28DC4EAE003E8BD9 /* ViewInspector */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */;
|
||||||
|
productName = ViewInspector;
|
||||||
|
};
|
||||||
|
327B90F128DC4EBB003E8BD9 /* ViewInspector */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */;
|
||||||
|
productName = ViewInspector;
|
||||||
|
};
|
||||||
|
327B90F328DC4EC0003E8BD9 /* ViewInspector */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */;
|
||||||
|
productName = ViewInspector;
|
||||||
|
};
|
||||||
32DCFE9428D333E8001A17BF /* ViewInspector */ = {
|
32DCFE9428D333E8001A17BF /* ViewInspector */ = {
|
||||||
isa = XCSwiftPackageProductDependency;
|
isa = XCSwiftPackageProductDependency;
|
||||||
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector.git" */;
|
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */;
|
||||||
productName = ViewInspector;
|
productName = ViewInspector;
|
||||||
};
|
};
|
||||||
32DCFE9628D333F1001A17BF /* ViewInspector */ = {
|
32DCFE9628D333F1001A17BF /* ViewInspector */ = {
|
||||||
isa = XCSwiftPackageProductDependency;
|
isa = XCSwiftPackageProductDependency;
|
||||||
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector.git" */;
|
package = 32DCFE8D28D333B0001A17BF /* XCRemoteSwiftPackageReference "ViewInspector" */;
|
||||||
productName = ViewInspector;
|
productName = ViewInspector;
|
||||||
};
|
};
|
||||||
/* End XCSwiftPackageProductDependency section */
|
/* End XCSwiftPackageProductDependency section */
|
||||||
|
|
|
@ -182,7 +182,7 @@ class AnimatedImageTests: XCTestCase {
|
||||||
.animation(.easeInOut)
|
.animation(.easeInOut)
|
||||||
_ = try introspectView.inspect()
|
_ = try introspectView.inspect()
|
||||||
ViewHosting.host(view: introspectView)
|
ViewHosting.host(view: introspectView)
|
||||||
self.waitForExpectations(timeout: 5, handler: nil)
|
self.waitForExpectations(timeout: 10, handler: nil)
|
||||||
ViewHosting.expel()
|
ViewHosting.expel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,6 @@ class ImageManagerTests: XCTestCase {
|
||||||
print(value)
|
print(value)
|
||||||
}
|
}
|
||||||
sub.cancel()
|
sub.cancel()
|
||||||
self.waitForExpectations(timeout: 5, handler: nil)
|
self.waitForExpectations(timeout: 10, handler: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ class WebImageTests: XCTestCase {
|
||||||
let imageView = WebImage(url: imageUrl)
|
let imageView = WebImage(url: imageUrl)
|
||||||
let introspectView = imageView.onSuccess { image, data, cacheType in
|
let introspectView = imageView.onSuccess { image, data, cacheType in
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
let displayImage = try? imageView.inspect().group().image(0).actualImage.nsImage()
|
let displayImage = try? imageView.inspect().group().image(0).actualImage().nsImage()
|
||||||
#else
|
#else
|
||||||
let displayImage = try? imageView.inspect().group().image(0).actualImage().cgImage()
|
let displayImage = try? imageView.inspect().group().image(0).actualImage().cgImage()
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue