refactor(test: awesomerc: hotkeys): imitate fake vim client instead of depending on vim as test dep

This commit is contained in:
actionless 2019-10-18 19:02:47 +02:00
parent e048c4200c
commit 68651477fb
3 changed files with 3 additions and 4 deletions

View File

@ -43,7 +43,6 @@ addons:
- xvfb
- zsh
- x11-apps
- vim-nox
# Need xorg-macros
- xutils-dev
# lgi.

View File

@ -109,7 +109,6 @@ Additionally, the following optional dependencies exist:
- [wmctrl](http://tripie.sweb.cz/utils/wmctrl) for testing WM interactions
with external actions
- [xterm](https://invisible-island.net/xterm/) for various test cases
- [vim](https://www.vim.org/) for testing app-specific hotkeys help widget
## Running Awesome

View File

@ -268,9 +268,10 @@ local steps = {
elseif count == 3 then
assert(not hotkeys_wibox.visible)
root.fake_input("key_release", "Super_L")
-- now let's run vim so hotkeys widget will show hotkeys for it:
test_context.hotkeys01_clients_before = #client.get()
awful.spawn("xterm -e vim")
-- imitate fake client with name "vim"
-- so hotkeys widget will offer vim hotkeys:
awful.spawn("xterm -title vim cat")
elseif not test_context.hotkeys01_count_vim then
-- if xterm with vim got already opened: