tests: Add asserts to under_mouse

This commit is contained in:
Emmanuel Lepage Vallee 2016-05-15 03:31:17 -04:00
parent 21c9766aa6
commit b4f08eb7b6
1 changed files with 3 additions and 0 deletions

View File

@ -6,3 +6,6 @@ mouse.coords {x= 50, y=50} --DOC_HIDE
mouse.push_history() --DOC_HIDE mouse.push_history() --DOC_HIDE
awful.placement.under_mouse(client.focus) awful.placement.under_mouse(client.focus)
assert(client.focus.x + client.focus.width /2 - mouse.coords().x <= 1) --DOC_HIDE
assert(client.focus.y + client.focus.height/2 - mouse.coords().y <= 1) --DOC_HIDE