DreamPiggy
7187aff159
Update SDAnimatedImage test and HEIC/HEIF test
2018-08-10 15:41:32 +08:00
Bogdan Poplauschi
49cd121b05
CocoaPods 1.5.0 for the Tests project
2018-07-17 10:56:42 +03:00
DreamPiggy
982ade8824
Remove all FLAnimatedImage from the Core SDWebImage repo. Move the code to SDWebImageFLPlugin repo
2018-07-13 22:17:02 +08:00
Bogdan Poplauschi
ebfe2cedc2
Merge pull request #2306 from dreampiggy/renaming_coder_protocol_and_coders
...
Renaming coder protocol and coders
2018-04-26 19:08:34 +03:00
DreamPiggy
0423cc2cf0
Update the test for image coder renaming
2018-04-26 23:21:26 +08:00
DreamPiggy
a5616e2bcd
Update the test for renaming
2018-04-26 23:03:44 +08:00
DreamPiggy
9c11886dc0
Update the test project to use modular headers instead of massive headers...
2018-04-19 17:25:39 +08:00
DreamPiggy
d5074429f0
Add tests for custom loader protocol, using a test loader to specify loader function
2018-04-18 20:46:00 +08:00
Bogdan Poplauschi
1bc4662bde
Merge pull request #2282 from dreampiggy/refactor_memory_cache_disk_cache
...
Refactor cache - Support custom memory cache & disk cache
2018-04-17 12:14:06 +03:00
DreamPiggy
dd2e71c99d
Add support for SDAnimatedImage imageNamed:bundle: for macOS, enable SDAnimatedImageTest for macOS
2018-04-17 12:03:24 +08:00
DreamPiggy
2d27300e00
Add test for custom memory cache and disk cache
2018-04-17 11:09:56 +08:00
DreamPiggy
793b7e33a8
Update the custom downloader operation to fix test
2018-04-05 06:06:01 +08:00
DreamPiggy
5da5ec92fb
Add the test for APNG coder
2018-03-29 17:59:32 +08:00
DreamPiggy
7e83d78ca3
Add tests about SDAnimatedImage SDAnimatedImageView and SDAnimatedImage+WebCache
2018-03-25 17:32:48 +08:00
DreamPiggy
ec7927b25a
Update the transformer to use as immutable class. Move the tests into SDWebImageTransformerTests
2018-03-23 15:48:58 +08:00
DreamPiggy
67285ee722
Add the test for transformer property
2018-03-17 22:31:28 +08:00
DreamPiggy
9d78dccac7
Add tests scheme for macOS. Because we now support cross-platform, some implementation is different from UIKit & AppKit. So we also need test
2018-02-20 00:49:25 +08:00
DreamPiggy
150affd201
Add new SDCategoriesTests for any other WebCache category tests
2018-02-19 20:38:55 +08:00
DreamPiggy
1f27d3c15f
Rename SDCategoriesTests to SDWebCacheCategoriesTests to make it focus on view category, import KVOController instead of build-in KVO for test
2018-02-19 20:19:14 +08:00
DreamPiggy
caafe27937
Upgrade target deployment version to iOS 8.0 / macOS 10.10
2018-01-01 13:15:51 +08:00
Bogdan Poplauschi
324563c7d2
Merge pull request #1898 from walkline/master into 5.x
...
Handle storeImageDataToDisk error.
2017-10-18 13:04:07 +03:00
DreamPiggy
a0879fc049
Feature: refactor decoding code and provide decoding plugin
...
- open the decoding/encoding procedures to the users
- switch from hardcoded decoding/encoding to pluginable decoders/encoders (builtin + user created)
- `SDWebImageCodersManager` is a singleton holding an array of `SDImageCoder` (protocol). Even though a singleton is not necesarily a good pattern, in this case it eliminates dealing with passing this array around
- uses a priority queue behind scenes, which means the latest added coders have priority.
- the priority is crucial when encoding/decoding something, we go through the list and ask each coder if they can handle the current data (see `canDecodeFromData:`, `canEncodeToFormat:`, `canIncrementallyDecodeFromData:`)
- each coder must conform to this protocol `SDImageCoder` describing all the required behavior for a coder
- we provide 3 built-in coders: `SDWebImageImageIOCoder` (for JPEG, PNG, TIFF), `SDWebImageGIFCoder` (for GIF), `SDWebImageWebPCoder` (for WebP and animated WebP)
- the user of SDWebImage can create custom coders by conforming to `SDImageCoder` and adding the coders to `SDWebImageCodersManager`. See `addCoder:` or `removeCoder:` or `coders` getter to get the array
- in order to preserve backwards compatibility, the UIImage categories were preserved, calling the new coders APIs described above
2017-10-16 19:52:18 +03:00
walkline
b51e0ca689
Removing not needed functions in SDImageCache. Using DI with initializer.
2017-10-11 21:11:36 +03:00
walkline
5fbbf73986
Merge branch 'master' of github.com:rs/SDWebImage
2017-10-11 20:16:06 +03:00
Bogdan Poplauschi
ff0690547d
Xcode 9 recommended settings applied
2017-10-06 20:58:44 +03:00
walkline
b9c17dcdd0
Merge branch 'master' of github.com:rs/SDWebImage
...
# Conflicts:
# Tests/SDWebImage Tests.xcodeproj/project.pbxproj
2017-09-09 14:57:58 +03:00
skyline75489
d11597a796
Move common test logic to SDTestCase
2017-08-03 07:50:51 +08:00
walkline
a581ab1991
Handle storeImageDataToDisk error.
2017-05-11 15:31:51 +03:00
Bogdan Poplauschi
8d1a0ae091
Added tests for the scale down decoding + test image and updated a bit the other decoder tests
2016-10-06 16:00:43 +03:00
Bogdan Poplauschi
9879ddf0dc
Test xcodeproj updated to Xcode 8
2016-10-06 16:00:02 +03:00
Bogdan Poplauschi
1cbe54d600
Tests for the WebCache categories
2016-09-25 19:53:53 +03:00
Bogdan Poplauschi
460c2e01a1
Tests project: CocoaPods 1.1.0, dynamic frameworks, include all the code from SDWebImage (MapKit and GIF), updated imports so they work fine
2016-09-25 19:46:46 +03:00
Bogdan Poplauschi
f48a133f1b
Prefetcher tests
2016-09-25 15:49:33 +03:00
Bogdan Poplauschi
cfc182f2e5
Added SDImageCacheConfig to all targets, test images, code coverage setting, tests for SDImageCache, SDWebImageDownloader, SDWebImageDownloaderOperation, SDWebImageDecoder
2016-09-24 00:14:13 +03:00
Bogdan Poplauschi
3364a981d5
Merge branch 'master' into 4.x
...
+ SDWebImageDownloader downloadImageWithURL:... properly use the weakself-strongself pattern
# Conflicts:
# .travis.yml
# Examples/SDWebImage Demo.xcodeproj/project.pbxproj
# README.md
# SDWebImage.xcodeproj/project.pbxproj
# SDWebImage/SDWebImageDownloader.m
# SDWebImage/SDWebImageDownloaderOperation.h
# SDWebImage/SDWebImageDownloaderOperation.m
# SDWebImage/SDWebImageManager.m
# Tests/Podfile
# Tests/SDWebImage Tests.xcodeproj/project.pbxproj
2016-06-07 08:36:45 +03:00
Bogdan Poplauschi
afaf306222
This should fix the build (the tests project)
2016-05-29 00:00:33 +03:00
Bogdan Poplauschi
13cfc5b89a
Merge pull request #883 from mattjgalloway/fix_multiple_downloads
...
Fix multiple requests for same image and then canceling one
2016-05-23 07:13:01 +03:00
Bogdan Poplauschi
e3ba4110a9
Renamed the schemes for consistency, dynamic frameworks are named SDWebImage instead of WebImage. Updated the Tests Podfile + project. Renamed the WebImage.h to SDWebImage.h to match the framework naming
2016-05-08 22:59:32 +03:00
Martin Oppetit
9c4fcfa844
Added API to save image NSData to disk cache
...
- exposing new `- (void)storeImageDataToDisk:(NSData *)imageData
forKey:(NSString *)key` function on SDImageCache
- added unit tests for this new API
- added file extension to kImageTestKey to ensure cache path is valid
for creating NSData
2016-02-01 15:19:59 +00:00
Matt Galloway
917c3d479d
Fix multiple requests for same image and then canceling one
2016-01-12 21:02:15 +00:00
Pau Ruiz
66ddb23593
Added image for testing cache
2015-04-19 09:24:34 +01:00
Bogdan Poplauschi
d9d9ceedf4
Updated the Tests project after updating to CocoaPods 0.34.4
2014-11-02 22:53:32 +02:00
Bogdan Poplauschi
c8df858f75
Added test for the UIImage+MultiFormat crash
2014-07-18 16:56:32 +03:00
Bogdan Poplauschi
c1fae30d63
Added SDWebImage Tests project. It uses CocoaPods (Expecta + XCTestAsync). Added some demo tests
2014-06-20 17:21:01 +03:00