Commit Graph

444 Commits

Author SHA1 Message Date
DreamPiggy b95b390f17 Update the unit test
Fix the `testUIViewCancelCurrentImageLoadWithTransition`
2024-01-10 16:17:41 +08:00
DreamPiggy a6cce6677b Update unit test
The `test15CancelQueryShouldCallbackOnceInSync` should use a better way to check
2024-01-10 14:35:29 +08:00
DreamPiggy 9ae93e5456 Update the test case for new behavior 2024-01-09 17:04:55 +08:00
DreamPiggy 5dec4049c1 Update the new test case for `testSDDisplayLink` 2023-11-29 17:46:43 +08:00
DreamPiggy 404d992c8f Update one failed test case during the 5.18 version changes 2023-11-16 18:46:15 +08:00
DreamPiggy 106a8d1a15 Use placehold.co to replace the down site via.placeholder.com
This only effect test cases
2023-11-16 18:37:04 +08:00
DreamPiggy 471ee9da1d Update the test case because of history wrong value 2023-11-16 17:59:08 +08:00
DreamPiggy 2fa1e1785a Fix the previous wrong changes of iOS 17 indexed PNG color workaround
Added test cases `test30ThatImageIOPNGPluginBuggyWorkaround`
2023-11-16 16:37:19 +08:00
DreamPiggy 56b4379984 Added test case for this down-orientation JFIF image file 2023-09-08 17:17:50 +08:00
DreamPiggy 44470a8e4e Added test cases for AvoidAutoCancelImage options 2023-09-01 16:10:50 +08:00
DreamPiggy 5ef6c83953
Merge pull request #3576 from dreampiggy/feature_set_image_state_api
Add better support for stateful view (UIButton) for image URL/progres s state management
2023-07-31 17:59:57 +08:00
DreamPiggy 1c92951110 Fix the unit test about out-of-date behavior 2023-07-31 10:39:48 +08:00
DreamPiggy 7e78633845
Merge pull request #3575 from dreampiggy/bugfix/CGImageCreateScale
Fix the CGImageCreateScaled to support 16/32 bit depth CGImage (RGB161616) and always preserve pixel format info
2023-07-29 21:59:26 +08:00
DreamPiggy 68c5808581 Added the complicated unit test `test22CGImageCreateScaledWithSize`
Test RGB888/RGB16/ARGB8888/RGB16/RGBF works on CGImageCreateScaled, because it's Foundation of coder plugin for thumbnail processing
2023-07-28 23:45:23 +08:00
DreamPiggy 480f3b5158 Update test case `test27ThatEncodeWithFramesWorks` 2023-07-26 23:04:02 +08:00
DreamPiggy 8dbf8ed97a Disable the test case testSDGraphicsImageRenderer on GitHub actions because it does not connect to a display
Only run on local Mac
2023-07-17 15:32:03 +08:00
yang f9e6cc288c Add test cases for bug #3564 2023-07-15 00:33:58 +08:00
DreamPiggy 633996a807 Fix the test case 2023-07-14 00:22:14 +08:00
DreamPiggy 8efa42e6bc Code garden for test cases 2023-07-14 00:03:06 +08:00
DreamPiggy 808cedc7e5 Rename to use struct to return the alignment, preserve for future HDR support 2023-07-13 23:41:09 +08:00
DreamPiggy 45b497c5f6 Fix the macOS force decode colorspace does not match screen colorspace and cause copy
Fix the NSColor should still convert to sRGB for print...
2023-07-13 23:31:19 +08:00
DreamPiggy 3e382b234d Fix the handle to context option and add test case 2023-07-13 22:58:32 +08:00
DreamPiggy 1a61c8d2d9 Update test case for SDImageForceDecodePolicyAutomatic 2023-07-13 22:58:32 +08:00
DreamPiggy 69c98c5f71 Added test case `test28ThatNotTriggerCACopyImage` and `test28ThatDoTriggerCACopyImage` 2023-07-13 22:58:32 +08:00
DreamPiggy ef69460dc7 Fix the test case test26AnimatedImageStopAnimatingClearBuffer 2023-05-09 16:50:41 +08:00
DreamPiggy eb8b62b170 Fix the test case `test57SDImageCachesManagerOperationPolicySerial` that remove the cache path directory 2023-04-21 20:39:49 +08:00
DreamPiggy 748def0a0c
Merge pull request #3496 from dreampiggy/temp/try_fix_promotion
Try to fix the SDAnimatedImageView playback speed issue in Promotion devices (iPhone Pro)
2023-02-18 19:36:15 +08:00
DreamPiggy 3440b7c0fb Update test case for display link and revert the protect code 2023-02-18 18:04:01 +08:00
DreamPiggy 9bc5207979 Added test case `test31ThatMultipleRequestForSameURLFailedCallback` to ensure behavior 2023-02-18 17:33:59 +08:00
DreamPiggy f2d7610181 Change Objc BOOL true/false into correct YES/NO 2023-02-07 02:32:11 +08:00
DreamPiggy 02969011b0 Try to fix the SDAsyncBlockOperation's race condition
Use the correct way for subclassing NSOperation
2023-02-06 21:05:51 +08:00
DreamPiggy 1ec6cd06f7 Change all placeholder.com sample from http into https 2023-02-06 18:56:25 +08:00
DreamPiggy b6910be155 Added test case `test31ThatMultipleRequestForSameURLNeverSkipCallback` to ensure all download request for same url always callback 2023-02-06 18:52:46 +08:00
DreamPiggy 975502b4a6
Merge pull request #3469 from dreampiggy/feat/animated_image_encode
Added encodeWithFrames API for animation encoding in custom coder, better for usage
2023-01-17 16:50:50 +08:00
DreamPiggy 9dd8b6c08b Update test case 2023-01-17 16:50:16 +08:00
DreamPiggy 985c84be75 Opt the macOS legacy animated encode, with the weak assigned frames to avoid re-decode again
It's still recommended to use the new API
2023-01-17 16:16:09 +08:00
DreamPiggy 911a9a86a0 Fix the wrong test because now ioQueue and encodeQueue is different thing, we should not assume calling storeImage and queryDiskCache get the data (they are not guarded by the same serial queue) 2023-01-12 15:56:08 +08:00
DreamPiggy 78fa0a9cb5 Update test case test08ThatImageTransformerWork with encode options 2023-01-11 16:38:00 +08:00
DreamPiggy 397f851240 Update test case 2023-01-09 22:14:53 +08:00
DreamPiggy 007100d18f Supports the old store cache API without context, which does not supports callback queue customization 2023-01-09 22:08:48 +08:00
DreamPiggy 1b086711ae Fix the issue because of main queue label hack 2023-01-09 22:08:48 +08:00
DreamPiggy 43d74211c3 Added test case `testSDCallbackQueue` 2023-01-09 22:08:48 +08:00
DreamPiggy 8be9f2c3f9
Merge pull request #3461 from dreampiggy/bugfix/yuv420_jpeg_hevc
Fix the iOS 15+ force-decode hack break Apple's HEIF and JPEG YUV420 optimization
2022-12-27 19:57:48 +08:00
DreamPiggy a53eb92988 Update the test case `test23ThatThumbnailEncodeCalculation`
This regression test should also been reverted
2022-12-27 19:23:58 +08:00
DreamPiggy ffc91663bf Added test case `test48CacheUseConcurrentIOQueue` 2022-12-27 17:37:07 +08:00
DreamPiggy f4706453d6 Use CoreGraphics to decode PDF instead of ImageIO to solve iOS 16's issue
We no longer use ImageIO to decode PDF, seems they don't maintain that kSDCGImageSourceRasterizationDPI
Copy the code from SDWebImagePDFCoder, need to update
2022-11-10 23:54:14 +08:00
DreamPiggy f8d353b50c Update test case `test06ThatUsingACustomDownloaderOperationWorks` 2022-11-08 20:04:36 +08:00
DreamPiggy 6a9b578369 Added test case `test21ThatQueryOriginalDiskCacheFromThumbnailShouldNotWriteBackDiskCache` 2022-11-08 18:51:47 +08:00
DreamPiggy 6c83696800 Update test case `test17ThatMinimumProgressIntervalWorks` to make it more stable 2022-11-07 18:39:33 +08:00
DreamPiggy 7c4649c7cc Update the test case `test23ThatThumbnailEncodeCalculation` 2022-11-07 15:25:52 +08:00