refactor(test: awesomerc: hotkeys): imitate fake vim client instead of depending on vim as test dep
This commit is contained in:
parent
e048c4200c
commit
68651477fb
|
@ -43,7 +43,6 @@ addons:
|
|||
- xvfb
|
||||
- zsh
|
||||
- x11-apps
|
||||
- vim-nox
|
||||
# Need xorg-macros
|
||||
- xutils-dev
|
||||
# lgi.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue