diff --git a/android/tests_backend/widgets/base.py b/android/tests_backend/widgets/base.py index 15ee3a278a..dc89eb436d 100644 --- a/android/tests_backend/widgets/base.py +++ b/android/tests_backend/widgets/base.py @@ -23,10 +23,8 @@ def assert_alignment_equivalent(self, actual, expected): async def redraw(self): """Request a redraw of the app, waiting until that redraw has completed.""" - # TODO: Travertino/Pack doesn't force a layout refresh - # when properties such as flex or width are altered. - # For now, do a manual refresh. - self.widget.window.content.refresh() + # TODO: Wait for redraws to complete + pass # If we're running slow, wait for a second if self.widget.app.run_slow: diff --git a/cocoa/tests_backend/widgets/base.py b/cocoa/tests_backend/widgets/base.py index 51f5eb7915..8c1d71d072 100644 --- a/cocoa/tests_backend/widgets/base.py +++ b/cocoa/tests_backend/widgets/base.py @@ -20,11 +20,6 @@ def assert_alignment_equivalent(self, actual, expected): async def redraw(self): """Request a redraw of the app, waiting until that redraw has completed.""" - # TODO: Travertino/Pack doesn't force a layout refresh - # when properties such as flex or width are altered. - # For now, do a manual refresh. - self.widget.window.content.refresh() - # Force a repaint self.widget.window.content._impl.native.displayIfNeeded() diff --git a/iOS/tests_backend/widgets/base.py b/iOS/tests_backend/widgets/base.py index d033884e8a..f520ed7c39 100644 --- a/iOS/tests_backend/widgets/base.py +++ b/iOS/tests_backend/widgets/base.py @@ -47,11 +47,6 @@ def assert_alignment_equivalent(self, actual, expected): async def redraw(self): """Request a redraw of the app, waiting until that redraw has completed.""" - # TODO: Travertino/Pack doesn't force a layout refresh - # when properties such as flex or width are altered. - # For now, do a manual refresh. - self.widget.window.content.refresh() - # Force a repaint self.widget.window.content._impl.native.layer.displayIfNeeded() diff --git a/winforms/tests_backend/widgets/base.py b/winforms/tests_backend/widgets/base.py index d765d8adfb..3285c30205 100644 --- a/winforms/tests_backend/widgets/base.py +++ b/winforms/tests_backend/widgets/base.py @@ -32,10 +32,7 @@ def assert_alignment_equivalent(self, actual, expected): async def redraw(self): """Request a redraw of the app, waiting until that redraw has completed.""" - # TODO: Travertino/Pack doesn't force a layout refresh - # when properties such as flex or width are altered. - # For now, do a manual refresh. - self.widget.window.content.refresh() + # Winforms style changes always take effect immediately. # If we're running slow, wait for a second if self.widget.app.run_slow: