placement: Remove leftover prints
This commit is contained in:
parent
e8da309cf1
commit
9f74416ef4
|
@ -9,7 +9,3 @@ local awful = {placement = require("awful.placement")} --DOC_HIDE
|
||||||
--[[local c = ]]client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
|
--[[local c = ]]client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
|
||||||
|
|
||||||
awful.placement.center_vertical(client.focus)
|
awful.placement.center_vertical(client.focus)
|
||||||
|
|
||||||
-- print("\n\n\n\n", c.y, c.height, screen[1].geometry.height/2-30/2)--FIXME
|
|
||||||
-- assert(c.x == 45 and c.y==screen[1].geometry.height/2-30/2--DOC_HIDE
|
|
||||||
-- and c.width==40 and c,height==30)--DOC_HIDE
|
|
||||||
|
|
|
@ -12,4 +12,3 @@ local c = client.gen_fake {x = 45, y = 35, width=40, height=30} --DOC_HIDE
|
||||||
placement.stretch_left(client.focus)
|
placement.stretch_left(client.focus)
|
||||||
|
|
||||||
assert(c.x == 0 and c.y == 35 and c.height == 30) --DOC_HIDE
|
assert(c.x == 0 and c.y == 35 and c.height == 30) --DOC_HIDE
|
||||||
print(c.width-2*c.border_width == 45+40) --DOC_HIDE
|
|
||||||
|
|
|
@ -14,5 +14,4 @@ placement.stretch_up(client.focus)
|
||||||
assert(c.y==0) --DOC_HIDE
|
assert(c.y==0) --DOC_HIDE
|
||||||
assert(c.x==45) --DOC_HIDE
|
assert(c.x==45) --DOC_HIDE
|
||||||
assert(c.width == 40) --DOC_HIDE
|
assert(c.width == 40) --DOC_HIDE
|
||||||
print(c.height-2*c.border_width,35+30)
|
|
||||||
assert(c.height-2*c.border_width == 35+30) --DOC_HIDE
|
assert(c.height-2*c.border_width == 35+30) --DOC_HIDE
|
||||||
|
|
Loading…
Reference in New Issue