Skip to content

Commit

Permalink
Remove refresh calls that aren't needed any more.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Feb 25, 2023
1 parent 8c24cbe commit df7c13e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
6 changes: 2 additions & 4 deletions android/tests_backend/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 0 additions & 5 deletions cocoa/tests_backend/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
5 changes: 0 additions & 5 deletions iOS/tests_backend/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
5 changes: 1 addition & 4 deletions winforms/tests_backend/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit df7c13e

Please sign in to comment.