Ensure only one client is managed for given window
This commit is contained in:
@@ -23,6 +23,10 @@ Then /^the output must match \/([^\/]+)\/([a-z]*)$/ do |pattern, options|
|
||||
uhwm_wait_output Regexp.new(pattern, options)
|
||||
end
|
||||
|
||||
Then /^the output must not match \/([^\/]+)\/([a-z]*)$/ do |pattern, options|
|
||||
expect(all_output).not_to match Regexp.new(pattern, options)
|
||||
end
|
||||
|
||||
Then /^the output must contain:$/ do |content|
|
||||
uhwm_wait_output content.to_s
|
||||
end
|
||||
|
@@ -27,6 +27,11 @@ When /^I tell uhwm to quit$/ do
|
||||
x_key 'alt+shift+q'
|
||||
end
|
||||
|
||||
When /^I quit uhwm$/ do
|
||||
x_key 'alt+shift+q'
|
||||
assert_exit_status 0
|
||||
end
|
||||
|
||||
Then /^the exit status must be (\d+)$/ do |exit_status|
|
||||
assert_exit_status exit_status.to_i
|
||||
end
|
||||
|
@@ -6,6 +6,10 @@ When /^a window requests to be mapped$/ do
|
||||
x_window_map
|
||||
end
|
||||
|
||||
When /^a window requests to be mapped (\d+) times$/ do |times|
|
||||
x_window_map times: times.to_i
|
||||
end
|
||||
|
||||
Then /^it must connect to X display$/ do
|
||||
uhwm_wait_output 'Connected to'
|
||||
expect(x_socket_check uhwm_pid).to be true
|
||||
|
Reference in New Issue
Block a user