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
|
- xvfb
|
||||||
- zsh
|
- zsh
|
||||||
- x11-apps
|
- x11-apps
|
||||||
- vim-nox
|
|
||||||
# Need xorg-macros
|
# Need xorg-macros
|
||||||
- xutils-dev
|
- xutils-dev
|
||||||
# lgi.
|
# lgi.
|
||||||
|
|
|
@ -109,7 +109,6 @@ Additionally, the following optional dependencies exist:
|
||||||
- [wmctrl](http://tripie.sweb.cz/utils/wmctrl) for testing WM interactions
|
- [wmctrl](http://tripie.sweb.cz/utils/wmctrl) for testing WM interactions
|
||||||
with external actions
|
with external actions
|
||||||
- [xterm](https://invisible-island.net/xterm/) for various test cases
|
- [xterm](https://invisible-island.net/xterm/) for various test cases
|
||||||
- [vim](https://www.vim.org/) for testing app-specific hotkeys help widget
|
|
||||||
|
|
||||||
## Running Awesome
|
## Running Awesome
|
||||||
|
|
||||||
|
|
|
@ -268,9 +268,10 @@ local steps = {
|
||||||
elseif count == 3 then
|
elseif count == 3 then
|
||||||
assert(not hotkeys_wibox.visible)
|
assert(not hotkeys_wibox.visible)
|
||||||
root.fake_input("key_release", "Super_L")
|
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()
|
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
|
elseif not test_context.hotkeys01_count_vim then
|
||||||
-- if xterm with vim got already opened:
|
-- if xterm with vim got already opened:
|
||||||
|
|
Loading…
Reference in New Issue