Support usage of ICCCM compliant window in UAT
This commit is contained in:
parent
97abd402b1
commit
eed9cdf0c0
@ -28,6 +28,10 @@ Around '@other_wm_running' do |_, block|
|
|||||||
with_other_wm { block.call }
|
with_other_wm { block.call }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
After '@icccm_window' do
|
||||||
|
icccm_window_ensure_stop
|
||||||
|
end
|
||||||
|
|
||||||
if ENV.key? 'TRAVIS'
|
if ENV.key? 'TRAVIS'
|
||||||
ENV['UHWMTEST_TIMEOUT'] = 8.to_s
|
ENV['UHWMTEST_TIMEOUT'] = 8.to_s
|
||||||
end
|
end
|
||||||
|
@ -8,6 +8,19 @@ module Uh
|
|||||||
QUIT_KEYBINDING = 'alt+shift+q'.freeze
|
QUIT_KEYBINDING = 'alt+shift+q'.freeze
|
||||||
LOG_READY = 'Working events'.freeze
|
LOG_READY = 'Working events'.freeze
|
||||||
|
|
||||||
|
def icccm_window_start
|
||||||
|
@icccm_window = ChildProcess.build(*%w[xmessage window])
|
||||||
|
@icccm_window.start
|
||||||
|
end
|
||||||
|
|
||||||
|
def icccm_window_ensure_stop
|
||||||
|
@icccm_window.stop
|
||||||
|
end
|
||||||
|
|
||||||
|
def icccm_window_name
|
||||||
|
'xmessage'
|
||||||
|
end
|
||||||
|
|
||||||
def uhwm_run options = '-v'
|
def uhwm_run options = '-v'
|
||||||
command = %w[uhwm]
|
command = %w[uhwm]
|
||||||
command << options if options
|
command << options if options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user