Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TextFields] Invalidate caret timers in snapshot tests. (#6182)
Text fields snapshot tests were taking longer and longer to execute. The root
cause was "caret blink" timers added to the main run loop for every text field
that was set to `isEditing = YES`. It is sufficient to remove all subviews of
the text field from their superviews to invalidate the timer. The actual
culprit appears to be a private subview of class `UITextSelectionView`, but
since accessing it would be more fragile than this solution, it's best to just
destroy the view hierarchy.
Closes #6181
- Loading branch information