-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ios_platform_images] Add extension tests #4925
[ios_platform_images] Add extension tests #4925
Conversation
Adds test coverage of the UIImage class extension that allows native code to load Flutter assets by name.
No changelog: the build changes are only to support unit tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGBWAQ
packages/ios_platform_images/example/ios/RunnerTests/UIImage+ios_platform_imagesTests.m
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this test!
@import XCTest; | ||
|
||
// The tests test the UIImage extension which is a public API intended for use from native code | ||
// outside of the plugin (see package README). Any change that requires changing existing tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow im surprised that this is a public API.
flutter/packages@275b76c...bc8c2f2 2023-09-15 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.21.6 to 2.21.7 (flutter/packages#4930) 2023-09-14 [email protected] [ios_platform_images] Add extension tests (flutter/packages#4925) 2023-09-14 [email protected] Roll Flutter (stable) from 2524052 to 367f9ea (3 revisions) (flutter/packages#4929) 2023-09-14 [email protected] [ci] Enable ios_platform_images tests (flutter/packages#4920) 2023-09-14 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.21.5 to 2.21.6 (flutter/packages#4922) 2023-09-14 [email protected] Roll Flutter from 61b890b to 58ba6c2 (16 revisions) (flutter/packages#4928) 2023-09-14 [email protected] Manual Roll of Flutter from 4e7a07a to 61b890b (flutter/packages#4919) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@275b76c...bc8c2f2 2023-09-15 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.21.6 to 2.21.7 (flutter/packages#4930) 2023-09-14 [email protected] [ios_platform_images] Add extension tests (flutter/packages#4925) 2023-09-14 [email protected] Roll Flutter (stable) from 2524052 to 367f9ea (3 revisions) (flutter/packages#4929) 2023-09-14 [email protected] [ci] Enable ios_platform_images tests (flutter/packages#4920) 2023-09-14 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.21.5 to 2.21.6 (flutter/packages#4922) 2023-09-14 [email protected] Roll Flutter from 61b890b to 58ba6c2 (16 revisions) (flutter/packages#4928) 2023-09-14 [email protected] Manual Roll of Flutter from 4e7a07a to 61b890b (flutter/packages#4919) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Adds test coverage of the UIImage class extension that allows native code to load Flutter assets by name.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).