MCPcopy
hub / github.com/qtile/qtile / test_screensplit

Function test_screensplit

test/layouts/test_screensplit.py:32–55  ·  view source on GitHub ↗
(ss_manager)

Source from the content-addressed store, hash-verified

30
31@ss_config()
32def test_screensplit(ss_manager):
33 # Max layout is default, occupies top half of screen
34 assert ss_manager.c.layout.info()["current_layout"] == "max"
35 ss_manager.test_window("one")
36 assert_dimensions(ss_manager, 0, 0, 800, 300)
37 ss_manager.test_window("two")
38 assert_dimensions(ss_manager, 0, 0, 800, 300)
39 assert ss_manager.c.layout.info()["current_clients"] == ["one", "two"]
40
41 ss_manager.c.layout.next_split()
42 assert ss_manager.c.layout.info()["current_layout"] == "columns"
43 assert ss_manager.c.layout.info()["current_clients"] == []
44
45 # Columns layout has no border on single...
46 ss_manager.test_window("three")
47 assert_dimensions(ss_manager, 0, 300, 800, 300)
48 # ... but a border of 2 when multiple windows
49 ss_manager.test_window("four")
50 assert_dimensions(ss_manager, 400, 300, 396, 296)
51 assert ss_manager.c.layout.info()["current_clients"] == ["three", "four"]
52
53 ss_manager.c.layout.next_split()
54 assert ss_manager.c.layout.info()["current_layout"] == "max"
55 assert ss_manager.c.layout.info()["current_clients"] == ["one", "two"]
56
57
58@ss_config()

Callers

nothing calls this directly

Calls 4

assert_dimensionsFunction · 0.90
test_windowMethod · 0.80
next_splitMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected