Uli Schlachter
46c32d9df1
tests/example: Add vim modelines
...
This uses DOC_HIDE magic in the actual test code, except for the
template.lua files which do not have it.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-31 13:59:38 +01:00
Daniel Hahler
68de588f21
tests: fix indenting/style ( #1303 )
...
Basically:
> for f in **/*.lua; do vim '+set sw=4' '+norm gg=G' '+wq' "$f"; done
2016-12-27 21:39:08 +01:00
Uli Schlachter
5d81441c76
Make the resize_to_mouse example test deterministic ( #1250 )
...
This test has a list of "things" that should be present in the output. This
table is iterated over via pairs(), which means that the output is
non-deterministic and the order of the entries is basically random.
Fix this by using ipairs() to get a deterministic iteration order. This requires
some slight change to the table that is iterated over.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-02 21:23:36 +01:00
Daniel Hahler
aeab2a70e9
Fix whitespace warnings reported by luacheck ( #1229 )
2016-11-21 22:38:23 +01:00
Emmanuel Lepage Vallee
9f74416ef4
placement: Remove leftover prints
2016-05-29 23:50:37 -04:00
Emmanuel Lepage Vallee
b4f08eb7b6
tests: Add asserts to under_mouse
2016-05-15 17:17:12 -04:00
Emmanuel Lepage Vallee
f0546b900d
tests: Improve the placement compositing tests
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
75764108e1
awful.placement: Make all functions return the geometry
2016-04-30 04:27:33 -04:00
Emmanuel Lepage Vallee
3e7a7f23c2
tests: Test awful.placement.resize_to_mouse
2016-04-30 04:27:33 -04:00
Emmanuel Lepage Vallee
fe8beaeaac
placement: Fix incorect use of the border_width
...
The code and tests assumed the border was equaly applied around
the geometry while the {x,y} pair of the geometry include the
border.
2016-04-18 23:56:23 -04:00
Emmanuel Lepage Vallee
798729ff11
tests: Test placement composition
2016-04-18 23:55:52 -04:00
Emmanuel Lepage Vallee
ef5ec333cc
tests: Test the remaining existing `awful.placement` methods.
...
Notes that some asserts are missing because the tests fail. This
will be fixed later. It is not a regression.
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
4bc3f04ec1
tests: Test `awful.placement.maximize` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
7ab83afbbc
tests: Test `awful.placement.maximize`
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
7b7d09edff
tests: Test all `awful.placement.stretch` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
7b7802f559
tests: Test `awful.placement.stretch`
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
dd0ea33015
tests: Test the new `awful.placement` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
db2f545411
tests: Test `awful.wibox.align`
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
61d143fe98
tests: Test `awful.placement.closest_corner`
...
The output image look fine, some `assert()` could be added.
2016-03-31 05:04:24 -04:00