Emmanuel Lepage Vallee
0419de2a60
tests: Test the screen name.
2019-09-30 00:49:40 -04:00
Emmanuel Lepage Vallee
994034934e
tests: Test `s:split()`.
2019-09-29 19:07:24 -04:00
Emmanuel Lepage Vallee
3a12e6d274
tests: Test Lua side screen management.
2019-09-29 19:07:24 -04:00
Emmanuel Lepage Vallee
68488f6218
tests: Test screen.automatic_factory
2019-09-29 18:56:06 -04:00
Emmanuel Lepage Vallee
553cafccde
tests: Test the error notifications when no screens are present.
...
This happens in early initialization when AwesomeWM is started with
`--screen manual`.
2019-09-29 18:56:06 -04:00
Emmanuel Lepage Vallee
067f8f4ebf
tests: Use --screen manual for both code coverage jobs.
2019-09-29 18:56:06 -04:00
Emmanuel Lepage Vallee
53fc364ede
shims: Update to handle Lua-side screen managment.
2019-09-29 18:20:15 -04:00
Emmanuel Lepage Vallee
fa7f1d689e
tests: Change only_on_screen to create fake screens "in sight".
...
Previously, it would create screens outside of a visible output area. In
the following commit, this will be tracked and a warning is printed when
it happens. This makes the test fail.
2019-09-29 18:20:15 -04:00
Uli Schlachter
0bc22aea85
client shims: Remove some duplicate code
...
Both commit 44e6b2d24e
and 4eda67ce54
added the same function to this
file (and by the commit message, the later was intended to do so, while
the former has an unrelated commit message (but does not contain any
other changes)).
Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-09-21 13:44:38 +02:00
Daniel Hahler
dc98eade3b
naughty: fix extra newline with only title/message ( #2870 )
...
* tests/test-naughty-legacy.lua: s/counter/added_counter
* naughty: fix extra newline with only title/message
With only title or message it should not have an extra newline.
Fixes: https://github.com/awesomeWM/awesome/commit/423aeebe8#commitcomment-35062951
2019-09-19 02:11:18 +02:00
Daniel Hahler
caf9a26660
tests: runner.run_steps: add fname/lnum for failed steps ( #2877 )
2019-09-14 14:35:20 +02:00
Daniel Hahler
13ea02eeeb
tests/run.sh: do not export XDG_CONFIG_HOME ( #2876 )
...
Only set it for the "awesome" process invocation.
2019-09-13 17:55:27 +02:00
Daniel Hahler
9b86a03b66
tests: do not export build_dir ( #2875 )
...
If really necessary this should be an uppercased var, but it is only
used with test-gravity.lua, where we can just rely on `$PWD` being the
build dir.
2019-09-13 17:55:06 +02:00
Daniel Hahler
4c31a0f745
tests: improve test-selection-transfer: use "wait_per_step" option ( #2874 )
...
* test-selection-transfer: clarify comment / condense
Noticed this via flaky coverage for the check after the "wait_a_bit"
block.
Ref: https://codecov.io/gh/awesomeWM/awesome/pull/2872/changes#L193
* tests/_runner.lua: add support for wait_per_step
2019-09-13 16:39:40 +02:00
Daniel Hahler
a7674f2359
tests/run.sh: output "awesome --version" ( #2872 )
...
Might be good to have a short version of it (single line), but extra
lines are indented, so this seems to be OK.
This helps / shows when the built version is not up-to-date (e.g. after
git-bisect), and serves as a basic check that it can be run in the first
place.
2019-09-13 16:02:22 +02:00
Daniel Hahler
0cbf536269
test-naughty-legacy.lua: harden/cleanup ( #2873 )
2019-09-13 16:00:51 +02:00
Emmanuel Lepage Vallée
f1335be21a
Merge pull request #2855 from Elv13/screen_geo_template
...
doc: Add some images to represent the various area of a screen.
2019-08-25 15:48:18 -04:00
Aire-One
d97dccfa1f
doc: Improve the screen padding image.
...
It now shows the padding instead of the tiling area.
2019-08-25 15:35:17 -04:00
Emmanuel Lepage Vallee
602d6ded07
doc: Add some images to represent the various area of a screen.
2019-08-19 01:48:00 -04:00
Emmanuel Lepage Vallee
6cb54db6c1
tests: Fix tag:clients() in the shims
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
84a0ca56a2
tests: Implement dynamic properties for the client shims.
...
This way enough signal are sent to display clients modified by the
rules.
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
9283719bfb
tests: Implement the fake_* screen methods
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
f0b6e36ac1
tests: Implement mouse.screen properly
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
e8c1463ce3
tests: Compute root.size() cxorrectly
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
4eda67ce54
tests: Add the struts to the shims
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
44e6b2d24e
shims: Always return something for c:tags()
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
48f973f2eb
tests: Add awesome.xrdb_get_value to the shims
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
ef508462b8
shims: Add a better error message when mouse.screen is called too early.
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
d3a0dcffcd
tests: Add client:kill() to the shims.
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
a18348542c
shims: Enforce working on valid screen objects.
...
Previously it was possible to manipulate deleted screens and that
made debugging harder down the line. By catching this early, it
wont be as nightmarish.
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
ce2dbea510
shims: Avoid a race condition when setting the mouse screen.
2019-08-18 02:44:34 -04:00
Emmanuel Lepage Vallee
f7c0f419e9
shims: Fix indentation
2019-08-14 00:55:27 -04:00
Emmanuel Lepage Vallee
1617c894cc
tests: Use rawget to avoid trigerring the tripwire.
...
The next commit will introduce extra checks that would otherwise
break this.
2019-08-14 00:55:27 -04:00
Emmanuel Lepage Vallée
1e59fc7fd2
Merge pull request #2828 from Elv13/matcher_v2
...
Improve `gears.matcher` to be more flexible.
2019-08-11 22:29:35 -07:00
Emmanuel Lepage Vallée
ed0918385c
Merge pull request #2825 from Elv13/yet_more_notif_fixes
...
Support the notification spec v1.2
2019-08-10 12:47:09 -07:00
Emmanuel Lepage Vallée
c4c97174e6
doc: Fix a rendering regression regarding backgrounds. ( #2820 )
...
The way background are rendered changed to accomodate issues regarding
cliping and border. However this broke the documentation examples.
This commit fixes this in the least hacky way I found.
Fixes #2727
2019-08-06 22:48:06 -07:00
Emmanuel Lepage Vallee
91ca922671
tests: Test the gears.matcher greater and lesser sections.
2019-08-03 18:26:06 -04:00
Emmanuel Lepage Vallee
2dc8c62b9b
tests: Test gears.matcher "rule_every".
2019-08-03 18:26:06 -04:00
Emmanuel Lepage Vallee
774465df4d
doc: Add the new grears.matcher features to the lone example.
...
This isn't really intended to be used outside of the object rules.
2019-08-03 18:26:06 -04:00
Emmanuel Lepage Vallee
6d58d7b4a2
tests: Test that the legacy naughty popup is used when the new API fails
...
Displaying errors is important. If the notification popup caused the
error, it was likely nothing could be displayed.
2019-08-03 01:45:22 -04:00
Emmanuel Lepage Vallee
529f4be53e
tests: Check that naughty emits "request::display_error" when needed.
2019-08-03 01:45:22 -04:00
Emmanuel Lepage Vallee
aed2af44b6
tests: Check if using client icon doesn't exceed the size constraints.
2019-08-03 01:45:22 -04:00
Emmanuel Lepage Vallee
6761778830
tests: Test the notification icon theme request::icon support.
2019-08-03 01:45:22 -04:00
Emmanuel Lepage Vallee
4fe05a566d
tests: Test exposing the notification persistence and animation props
2019-08-03 01:45:22 -04:00
Emmanuel Lepage Vallee
7d609fb69b
tests: Test the notification spec v1.2 "resident notification" support.
...
If a notification is resident, invoking an action should not destroy it.
If an action is not resident, invoking an action destroys it.
2019-08-03 01:45:22 -04:00
Emmanuel Lepage Vallee
e076bc664e
naughty: Bump the SPEC version compliance to v1.2.
...
* action icons
* persistence
* residence
* categories
* animated icons
* more ways to get icons
In addition, the commit also tries its best to attach notifications to
objects using various dubious semi compliant hints or the DBus PID. It
works often enough to be useful.
2019-08-03 01:45:22 -04:00
Sergey Vlasov
f08599a6d6
test-leak-client.lua: Test GC for titlebar widgets ( #2830 )
...
Add a test which recreates the titlebar for an existing client and
checks that widgets from the old titlebar instance can be GC'd.
Signed-off-by: Sergey Vlasov <sigprof@gmail.com>
2019-07-22 17:35:18 +03:00
Emmanuel Lepage Vallée
f3ee880bd8
Merge pull request #2816 from Elv13/more_notif_fix
...
Fix 4 "new API" notification bugs
2019-07-10 17:27:27 -04:00
Emmanuel Lepage Vallee
aabbb412fe
naughty.action: Fix icon_only.
...
It could not be specified in the contructor.
Fix #2815
2019-07-07 16:07:37 -04:00
Sergey Vlasov
51e823832c
test-awful-placement: Test no_overlap with unselected tags ( #2809 )
...
Test the behavior of awful.placement.no_overlap when placing clients on
unselected tags. Currently this tests only the most common case with
only a single selected tag and a single tag set for each client.
Signed-off-by: Sergey Vlasov <sigprof@gmail.com>
2019-07-04 16:43:30 +03:00