Emmanuel Lepage Vallee
2a506b03ae
tests: Port the screen template to wibox.layout.manual
...
It's more flexible than raw cairo code and it's what it was
originally designed for (see #1153 ).
2017-10-21 19:34:04 +02:00
Emmanuel Lepage Vallee
767cda5830
doc: Fix some example tests indentation
...
When `DOC_NO_USAGE` is set, the examples need 4 spaces as per the
markdown spec.
2017-01-03 00:10:18 -05:00
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
Uli Schlachter
a8834bfcc1
tests/examples: Move common template code into a common file ( #993 )
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-09 19:03:49 +02:00
Uli Schlachter
ffe64727fe
Silence warnings in examples ( #944 )
...
There was a problem that the examples were considered to have failed as soon as
they produced any kind of output, but there were legitimate cases of warnings
being printed that triggered these checks. Commit 4819be4f4f
used a
regular expression to detect and ignore this warnings.
This commit reverts the above commit and instead silences the warnings by
monkey-patching the function that prints the warnings into a no-op.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-06-07 22:57:01 +02: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
66ca66ca87
tests: Add basic drawin shim
2016-05-03 17:12:54 -04:00
Emmanuel Lepage Vallee
fc2d359722
doc: Add a coords example
...
This forced the `coords()` documentation to be moved to Lua.
Keeping it in the C file caused yet another example CMake hack.
2016-04-30 04:27:34 -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
Emmanuel Lepage Vallee
9f1565c798
tests: Add a template to test clients, screens, tags and mouse
2016-03-31 04:45:45 -04:00