Skip to content

Commit

Permalink
dragged: isolate with gtkapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq committed Feb 22, 2024
1 parent ee7d97f commit 45f5ef0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Binary file modified mir-ci/mir_ci/robot_templates/dragged_app_titlebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions mir-ci/mir_ci/test_screencopy_bandwidth.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ async def test_inactive_app(self, record_property, server, app) -> None:
apps.mir_demo_server(),
],
)
async def test_app_dragged_around(self, record_property, local_server, request) -> None:
@pytest.mark.parametrize(
"client",
[apps.gtkapp("python3", Path(__file__).parent / "clients" / "maximizing_gtk_app.py")],
)
async def test_app_dragged_around(self, record_property, local_server, client, request) -> None:
extensions = ScreencopyTracker.required_extensions + WaylandRobot.required_extensions
app_path = Path(__file__).parent / "clients" / "maximizing_gtk_app.py"
server = DisplayServer(local_server, add_extensions=extensions)
app = server.program(apps.App(("dbus-run-session", "--", "python3", str(app_path))))
tracker = ScreencopyTracker(server.display_name)

robot_test_case = dedent(
Expand All @@ -111,6 +113,6 @@ async def test_app_dragged_around(self, record_property, local_server, request)

robot = server.program(WaylandRobot(request, robot_test_case))

async with server, tracker, app, robot:
async with server, tracker, server.program(client), robot:
await robot.wait()
_record_properties(record_property, server, tracker, 16)

0 comments on commit 45f5ef0

Please sign in to comment.