Prototype clients management with windows

This commit is contained in:
Thibault Jouan
2015-04-15 17:56:17 +00:00
parent 8bcb31ddc2
commit fe47e27d98
5 changed files with 38 additions and 0 deletions

View File

@@ -27,3 +27,7 @@ end
Then /^the output must contain current display$/ do
uhwm_wait_output ENV['DISPLAY']
end
Then /^the output must contain the window name$/ do
uhwm_wait_output x_window_name
end

View File

@@ -6,6 +6,10 @@ Given /^uhwm is running$/ do
uhwm_run_wait_ready
end
Given /^uhwm is running with options? (-.+)$/ do |options|
uhwm_run_wait_ready options
end
Given /^uhwm is running with this run control file:$/ do |rc|
write_file '.uhwmrc.rb', rc
uhwm_run_wait_ready

View File

@@ -2,6 +2,10 @@ When /^I press the ([^ ]+) keys?$/ do |keys|
x_key keys
end
When /^a window requests to be mapped$/ do
x_window_map
end
Then /^it must connect to X display$/ do
uhwm_wait_output 'Connected to'
expect(x_socket_check uhwm_pid).to be true