Skip to content
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

Follow up cleanup of some unit tests for right click handling. #27152

Merged
merged 2 commits into from
Jul 3, 2021

Conversation

gaaclarke
Copy link
Member

@gaaclarke gaaclarke commented Jul 2, 2021

Some cleanup after an external contribution: #27019

Removed conditional compilation which makes it easier to maintain until we transition to xcode 13 and it makes the steps for removal more apparent and easier to track.

cc @moffatman

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@google-cla google-cla bot added the cla: yes label Jul 2, 2021
@gaaclarke gaaclarke requested a review from jmagman July 2, 2021 23:17
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

I am trying to get a frankenstein Xcode bundle package on the engine builders. It's Xcode 12.0 + SDKs/runtimes for iOS 13, iOS 13.5, iOS 14, and iOS 15 beta 2. So it's @available(iOS 15, *) but the XCTest framework is from Xcode 12. Once the tests are running in a different builder than the framework builds after the recipe refactor, we can switch it to the opposite where it's Xcode 13 beta 2 + older iOS SDKs and runtimes.

Is the purpose of this change make sure it's running on iOS 15 AND has the Xcode 13 XCTest framework embedded?

Right now on Xcode 12.5 there are multiple warnings on this patch:

iPadGestureTests.m:34:45: Undeclared selector 'supportsPointerInteraction'
iPadGestureTests.m:69:21: Undeclared selector 'rightClick'
iPadGestureTests.m:73:16: PerformSelector may cause a leak because its selector is unknown

On Xcode 13 it has one warning:

iPadGestureTests.m:73:16: PerformSelector may cause a leak because its selector is unknown

@gaaclarke
Copy link
Member Author

gaaclarke commented Jul 2, 2021

The warnings are expected. They aren't anything to be concerned about and will disappear after we have xcode 13, I can suppress them if you want. The purpose of the change is to make sure all the code is compiling. That way we can at least ensure the tests compile even if they don't run on CI. Also instead of creating a blanket conditional compilation this has fine grain information about what is being used from the newer SDK and links an issue for its removal when CI is capable and notes the condition whence it can be removed.

edit: (also it executes when it can =)

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

Hopefully we can get rid of all this reflection soon...

@gaaclarke gaaclarke added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jul 3, 2021
@fluttergithubbot fluttergithubbot merged commit 679a7ad into flutter:master Jul 3, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 3, 2021
moffatman pushed a commit to moffatman/engine that referenced this pull request Aug 5, 2021
naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants