Skip to content

Conversation

@jacob314
Copy link
Contributor

I'm open to keeping some of these tests on a local branch if we are concerned they will cause
too many busy work changes as widgets are updated. Just let me know which tests to keep out of the repo.
These tests were useful in refactoring the toStringDeep code but are perhaps a bit excessive
outside of that context.

@jacob314 jacob314 requested a review from Hixie June 24, 2017 00:37
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a TODO(ianh) to fix this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added TODO(jacobr) because I'm about to send you a CL that incidentally fixes this issue.

@Hixie
Copy link
Contributor

Hixie commented Jun 24, 2017

LGTM. I'm fine with checking this in.

I think we would be better served by specific tests of each class, though.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

@googlebot
Copy link

CLAs look good, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to reduce this test to a shallow test of properties due to the platform dependent toStringDeep text issue described above.
OI could also change
equalsIgnoringHashCodes
to also normalize platform names but
I would have to change its name as well if I did that.

Copy link
Contributor

Choose a reason for hiding this comment

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

aren't you going to have the same issue here?

@Hixie
Copy link
Contributor

Hixie commented Jun 26, 2017

You can just force the platform to be whatever you want it to be, I think. Doesn't it come from the Theme?

@jacob314
Copy link
Contributor Author

Fixed the issue that was causing the platform to not match the platform specified for tests in a separate CL.
Updated all tests to now expect android and verified the tests pass on macos.

expect(didBuild, isTrue);
final RenderObject theater = overlayKey.currentContext.findRenderObject();

// toStringDeep output is missing a trailing line break.
Copy link
Contributor

Choose a reason for hiding this comment

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

todo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Hixie
Copy link
Contributor

Hixie commented Jun 27, 2017

LGTM

@jacob314 jacob314 merged commit 76a50fe into flutter:master Jun 27, 2017
@jacob314 jacob314 deleted the review_add_tests branch June 27, 2017 17:44
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
…sts. (flutter#10954)

* Switch existings tests to use equalsIgnoringHashCodes and add more tests.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants