MCPcopy
hub / github.com/qtile/qtile / test_tall_growmain_multiplesecondary

Function test_tall_growmain_multiplesecondary

test/layouts/test_xmonad.py:325–350  ·  view source on GitHub ↗
(manager)

Source from the content-addressed store, hash-verified

323
324@monadtall_config
325def test_tall_growmain_multiplesecondary(manager):
326 manager.test_window("one")
327 assert_dimensions(manager, 0, 0, 796, 596)
328
329 manager.test_window("two")
330 manager.test_window("three")
331 manager.c.layout.previous()
332 manager.c.layout.previous()
333 assert_focused(manager, "one")
334
335 assert_dimensions(manager, 0, 0, 396, 596)
336 manager.c.layout.grow()
337 # Grows 5% of 800 = 40 pixels
338 assert_dimensions(manager, 0, 0, 436, 596)
339 manager.c.layout.shrink()
340 assert_dimensions(manager, 0, 0, 396, 596)
341
342 # Max width is 75% of 800 = 600 pixels
343 for _ in range(10):
344 manager.c.layout.grow()
345 assert_dimensions(manager, 0, 0, 596, 596)
346
347 # Min width is 25% of 800 = 200 pixels
348 for _ in range(10):
349 manager.c.layout.shrink()
350 assert_dimensions(manager, 0, 0, 196, 596)
351
352
353@monadwide_config

Callers

nothing calls this directly

Calls 6

assert_dimensionsFunction · 0.90
assert_focusedFunction · 0.90
test_windowMethod · 0.80
previousMethod · 0.45
growMethod · 0.45
shrinkMethod · 0.45

Tested by

no test coverage detected