Skip to content

Commit

Permalink
tests/wm: make gdk_backend class-scoped fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Sep 30, 2024
1 parent c668105 commit cb2fc90
Show file tree
Hide file tree
Showing 9 changed files with 375 additions and 379 deletions.
86 changes: 43 additions & 43 deletions test/pict/test_maximize_unmaximize.gen
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
class gdk_backend monitor0_scale monitor1_scale layout_mode window_position window_size window_maximize window_monitor current_monitor primary_monitor window_monitor_connector window_above window_skip_taskbar window_stick
TestWaylandTwoMonitors GdkBackend.X11 2.0 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.6 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.25 1.0 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.714 True WindowMonitor.CONNECTOR 1 1 1 True False True
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.0 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.714 False WindowMonitor.CONNECTOR 1 0 1 False True True
TestWaylandTwoMonitors GdkBackend.X11 1.748633861541748 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.913 True WindowMonitor.CONNECTOR 0 1 0 True False False
TestWaylandTwoMonitors GdkBackend.X11 1.502347469329834 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 1.0 True WindowMonitor.CONNECTOR 0 0 0 False False True
TestWaylandTwoMonitors GdkBackend.X11 1.0 2.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.LEFT 0.714 False WindowMonitor.CONNECTOR 0 0 1 True True False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.0 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.8 True WindowMonitor.CONNECTOR 1 1 0 False True True
TestWaylandTwoMonitors GdkBackend.WAYLAND 2.0 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.8 False WindowMonitor.CONNECTOR 1 0 1 True False False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.748633861541748 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.913 False WindowMonitor.CONNECTOR 1 1 1 False True True
TestWayland GdkBackend.WAYLAND 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.6 True WindowMonitor.CONNECTOR 0 0 0 True False True
TestWaylandTwoMonitors GdkBackend.X11 1.0 1.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.TOP 0.913 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.502347469329834 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 1.0 False WindowMonitor.CONNECTOR 1 1 1 True True False
TestWaylandTwoMonitors GdkBackend.X11 1.25 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.913 True WindowMonitor.CONNECTOR 1 1 0 True False False
TestWayland GdkBackend.X11 1.502347469329834 0 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.8 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.25 2.0 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.6 True WindowMonitor.CONNECTOR 1 1 0 False False True
TestWaylandTwoMonitors GdkBackend.X11 1.0 1.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.RIGHT 1.0 False WindowMonitor.CONNECTOR 0 0 0 False False False
TestWaylandTwoMonitors GdkBackend.X11 1.502347469329834 2.0 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.714 True WindowMonitor.CONNECTOR 1 1 0 True True False
TestWaylandTwoMonitors GdkBackend.X11 2.0 2.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.913 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors GdkBackend.X11 1.25 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.714 False WindowMonitor.CONNECTOR 0 0 0 True True False
TestWaylandTwoMonitors GdkBackend.X11 1.748633861541748 2.0 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 1.0 True WindowMonitor.CONNECTOR 1 0 0 False False False
TestWaylandTwoMonitors GdkBackend.X11 1.0 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.6 False WindowMonitor.CONNECTOR 0 1 1 True True False
TestWaylandTwoMonitors GdkBackend.X11 2.0 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 1.0 True WindowMonitor.CONNECTOR 1 1 0 False True False
TestX11 GdkBackend.X11 1.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.RIGHT 0.714 False WindowMonitor.CONNECTOR 0 0 0 False False False
TestWaylandTwoMonitors GdkBackend.WAYLAND 2.0 1.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.8 True WindowMonitor.CONNECTOR 1 1 0 True True True
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.502347469329834 1.0 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.6 True WindowMonitor.CONNECTOR 1 1 0 True True True
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.748633861541748 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.714 True WindowMonitor.CONNECTOR 1 0 1 True True True
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.748633861541748 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.8 True WindowMonitor.CONNECTOR 0 1 0 True True True
TestWayland GdkBackend.WAYLAND 1.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.RIGHT 0.913 False WindowMonitor.CONNECTOR 0 0 0 False False False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.25 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 1.0 True WindowMonitor.CONNECTOR 1 1 1 True True True
TestWayland GdkBackend.WAYLAND 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.TOP 1.0 False WindowMonitor.CONNECTOR 0 0 0 True False False
TestX11 GdkBackend.X11 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.LEFT 0.6 True WindowMonitor.CONNECTOR 0 0 0 True True True
TestWaylandTwoMonitors GdkBackend.WAYLAND 2.0 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.714 False WindowMonitor.CONNECTOR 1 1 0 False False False
TestWayland GdkBackend.WAYLAND 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.RIGHT 0.714 False WindowMonitor.CONNECTOR 0 0 0 False False False
TestWayland GdkBackend.WAYLAND 1.748633861541748 0 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.6 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestX11 GdkBackend.X11 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.8 False WindowMonitor.CONNECTOR 0 0 0 True True False
TestWayland GdkBackend.WAYLAND 1.25 0 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.8 False WindowMonitor.CONNECTOR 0 0 0 True False False
TestWaylandTwoMonitors GdkBackend.WAYLAND 2.0 2.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.RIGHT 0.8 False WindowMonitor.CONNECTOR 0 0 1 False True False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.502347469329834 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.913 False WindowMonitor.CONNECTOR 0 0 0 True False True
TestX11 GdkBackend.X11 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.TOP 1.0 False WindowMonitor.CONNECTOR 0 0 0 True False False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.748633861541748 1.0 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.913 False WindowMonitor.CONNECTOR 0 1 1 False True False
TestX11 GdkBackend.X11 1.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.913 False WindowMonitor.CONNECTOR 0 0 0 True False False
TestWaylandTwoMonitors GdkBackend.WAYLAND 1.25 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.6 False WindowMonitor.CONNECTOR 0 1 1 True False True
class monitor0_scale monitor1_scale layout_mode window_position window_size window_maximize window_monitor current_monitor primary_monitor window_monitor_connector window_above window_skip_taskbar window_stick
TestWaylandTwoMonitors 2.0 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.6 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors 1.25 1.0 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.714 True WindowMonitor.CONNECTOR 1 1 1 True False True
TestWaylandTwoMonitors 1.0 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.714 False WindowMonitor.CONNECTOR 1 0 1 False True True
TestWaylandTwoMonitors 1.748633861541748 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.913 True WindowMonitor.CONNECTOR 0 1 0 True False False
TestWaylandTwoMonitors 1.502347469329834 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 1.0 True WindowMonitor.CONNECTOR 0 0 0 False False True
TestWaylandTwoMonitors 1.0 2.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.LEFT 0.714 False WindowMonitor.CONNECTOR 0 0 1 True True False
TestWaylandTwoMonitors 1.0 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.8 True WindowMonitor.CONNECTOR 1 1 0 False True True
TestWaylandTwoMonitors 2.0 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.8 False WindowMonitor.CONNECTOR 1 0 1 True False False
TestWaylandTwoMonitors 1.748633861541748 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.913 False WindowMonitor.CONNECTOR 1 1 1 False True True
TestX11 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.6 True WindowMonitor.CONNECTOR 0 0 0 True False True
TestWaylandTwoMonitors 1.502347469329834 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.6 False WindowMonitor.CONNECTOR 1 1 1 False True False
TestWaylandTwoMonitors 2.0 1.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.LEFT 1.0 False WindowMonitor.CONNECTOR 0 1 0 False True False
TestWaylandTwoMonitors 1.0 1.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.8 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors 1.502347469329834 1.0 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.913 False WindowMonitor.CONNECTOR 1 0 0 True False False
TestWaylandTwoMonitors 1.0 2.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.TOP 0.6 True WindowMonitor.CONNECTOR 1 1 0 False False True
TestWaylandTwoMonitors 1.748633861541748 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 1.0 True WindowMonitor.CONNECTOR 0 1 0 True False False
TestWaylandTwoMonitors 1.25 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.714 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors 1.25 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.913 False WindowMonitor.CONNECTOR 0 1 1 False True False
TestWaylandTwoMonitors 2.0 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 1.0 False WindowMonitor.CONNECTOR 0 0 1 False True False
TestWayland 1.748633861541748 0 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.6 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors 1.502347469329834 2.0 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.8 True WindowMonitor.CONNECTOR 0 1 1 True False False
TestWayland 1.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.TOP 1.0 True WindowMonitor.CONNECTOR 0 0 0 True True False
TestWaylandTwoMonitors 1.0 2.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.LEFT 0.913 False WindowMonitor.CONNECTOR 0 1 1 False True False
TestWaylandTwoMonitors 1.748633861541748 1.0 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.714 False WindowMonitor.CONNECTOR 1 1 0 False True False
TestWaylandTwoMonitors 1.748633861541748 2.0 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 1.0 False WindowMonitor.CONNECTOR 1 1 0 False False False
TestWayland 1.502347469329834 0 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.714 False WindowMonitor.CONNECTOR 0 0 0 False False False
TestWaylandTwoMonitors 1.25 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.TOP 0.8 False WindowMonitor.CONNECTOR 0 1 1 False True False
TestWayland 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.8 False WindowMonitor.CONNECTOR 0 0 0 False True True
TestWaylandTwoMonitors 1.25 2.0 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 1.0 False WindowMonitor.CONNECTOR 1 0 1 False True False
TestX11 1.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.LEFT 1.0 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWayland 1.25 0 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.913 False WindowMonitor.CONNECTOR 0 0 0 True True True
TestWaylandTwoMonitors 2.0 2.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.RIGHT 0.714 False WindowMonitor.CONNECTOR 0 0 0 True False False
TestX11 2.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.RIGHT 0.913 False WindowMonitor.CONNECTOR 0 0 0 False False True
TestWaylandTwoMonitors 1.25 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.714 False WindowMonitor.CONNECTOR 0 1 1 False False True
TestX11 1.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.TOP 0.8 False WindowMonitor.CONNECTOR 0 0 0 False False True
TestWaylandTwoMonitors 1.0 1.748633861541748 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.6 False WindowMonitor.CONNECTOR 1 0 0 True True True
TestWaylandTwoMonitors 1.748633861541748 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.BOTTOM 0.714 False WindowMonitor.CONNECTOR 0 0 0 False False True
TestWaylandTwoMonitors 1.25 1.502347469329834 displayconfig.LayoutMode.LOGICAL WindowPosition.LEFT 0.6 False WindowMonitor.CONNECTOR 0 0 1 False False False
TestX11 1.0 0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.714 False WindowMonitor.CONNECTOR 0 0 0 False True False
TestWaylandTwoMonitors 1.0 1.0 displayconfig.LayoutMode.PHYSICAL WindowPosition.BOTTOM 0.6 False WindowMonitor.CONNECTOR 1 1 0 False True True
TestWaylandTwoMonitors 1.502347469329834 1.25 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.8 False WindowMonitor.CONNECTOR 1 1 1 False True True
TestWaylandTwoMonitors 1.748633861541748 1.0 displayconfig.LayoutMode.LOGICAL WindowPosition.RIGHT 0.8 False WindowMonitor.CONNECTOR 1 1 1 True True True
4 changes: 1 addition & 3 deletions test/pict/test_maximize_unmaximize.model
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
class: TestX11, TestWayland, TestWaylandTwoMonitors

gdk_backend: GdkBackend.X11, GdkBackend.WAYLAND (100)

monitor0_scale: 1.0, 1.25, 1.502347469329834, 1.748633861541748, 2.0
monitor1_scale: <monitor0_scale>, 0
layout_mode: displayconfig.LayoutMode.PHYSICAL (100), displayconfig.LayoutMode.LOGICAL
Expand All @@ -20,7 +18,7 @@ window_skip_taskbar: True, False
window_stick: True, False

IF [class] = "TestX11"
THEN [layout_mode] = "displayconfig.LayoutMode.PHYSICAL" AND [gdk_backend] = "GdkBackend.X11";
THEN [layout_mode] = "displayconfig.LayoutMode.PHYSICAL";

IF [layout_mode] = "displayconfig.LayoutMode.PHYSICAL"
THEN [monitor0_scale] IN {1.0, 2.0} AND [monitor1_scale] IN {1.0, 2.0, 0};
Expand Down
Loading

0 comments on commit cb2fc90

Please sign in to comment.