Skip to content

Fix tests that use bogus objects, update TestImageInfo interface#64599

Merged
fluttergithubbot merged 3 commits into
flutter:masterfrom
dnfield:fix_image_info_tests
Aug 26, 2020
Merged

Fix tests that use bogus objects, update TestImageInfo interface#64599
fluttergithubbot merged 3 commits into
flutter:masterfrom
dnfield:fix_image_info_tests

Conversation

@dnfield

@dnfield dnfield commented Aug 26, 2020

Copy link
Copy Markdown
Contributor

The ImageInfo class says that the image field is non-nullable. In trying to update the test interface to match for #64582, I found the tester segfaulted because the cupertino tests I'm fixing here now pass in a bogus dart:ui Image implementation, which results in #64598

@dnfield
dnfield requested a review from jonahwilliams August 26, 2020 00:10
@flutter-dashboard flutter-dashboard Bot added f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels. labels Aug 26, 2020
@dnfield dnfield changed the title Fix tests that use bogux objects, update TestImageInfo interface Fix tests that use bogus objects, update TestImageInfo interface Aug 26, 2020

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for fixing this!

@dnfield

dnfield commented Aug 26, 2020

Copy link
Copy Markdown
Contributor Author

Found more instances in some other cupertino tests - added them to this.

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM

@fluttergithubbot
fluttergithubbot merged commit d059658 into flutter:master Aug 26, 2020
@dnfield
dnfield deleted the fix_image_info_tests branch August 26, 2020 18:32
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants