Unit tests that test location/size before BeginInit()
and/or LayoutSubviews()
are bogus
#2449
Labels
breaking-change
For PRs that introduces a breaking change (behavior or API)
bug
testing
Issues related to testing
v2
For discussions, issues, etc... relavant for v2
E.g.
It does not make sense to assume anything about the size or location of
label
(or any View) withoutLayoutSubviews()
having been called on the view's superview.This test passes in v1 because when
Text
is set,OnResizeNeeded
(previously calledProcessResizeView
) was always called:In v2, we need to use
BeginInit/EndInit
more cleanly, and code like the above will change to the following which breaks the above test.I will be refactoring any such unit tests as part of #2360 like this:
The text was updated successfully, but these errors were encountered: